84% right-meow

Code Review | Right Meow

WordPress plugin Right Meow scored84%from 54 tests.

About plugin

  • Plugin page: right-meow
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 0.71-3.6
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Aug 14, 2014
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: tleen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /743 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.41ms] Passed 4 tests

Server-side resources used by Right Meow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0047.58 ▲4.72
Dashboard /wp-admin3.31 ▲0.0143.10 ▼10.46
Posts /wp-admin/edit.php3.36 ▲0.0052.63 ▲1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.77 ▲0.44
Media Library /wp-admin/upload.php3.23 ▲0.0039.23 ▲2.66

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Right Meow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▼0.012.10 ▲0.0942.75 ▼3.43
Dashboard /wp-admin2,195 ▲185.65 ▲0.0287.08 ▼16.0138.42 ▼6.03
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0241.16 ▲2.5035.70 ▼0.91
Add New Post /wp-admin/post-new.php1,545 ▼023.16 ▼0.10629.02 ▼50.3664.26 ▲5.97
Media Library /wp-admin/upload.php1,403 ▲34.42 ▲0.14101.29 ▲1.6246.39 ▲1.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require(wp-content/plugins/right-meow/test/../plugin.php): failed to open stream: No such file or directory in wp-content/plugins/right-meow/test/PluginTest.php on line 10
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/right-meow/test/../plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/right-meow/test/PluginTest.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: filter, super troopers, comment, meow, cat game

right-meow/wp-right-meow.php 92% from 13 tests

This is the main PHP file of "Right Meow" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("right-meow.php" instead of "wp-right-meow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected60 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3183460

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin