84% wp-ragadjust

Code Review | WP ragadjust

WordPress plugin WP ragadjust scored84%from 54 tests.

About plugin

  • Plugin page: wp-ragadjust
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Jan 3, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 4
  • Update frequency: every 61.0 days
  • Top authors: jameskoster (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /2,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP ragadjust
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.86 ▲5.58
Dashboard /wp-admin3.31 ▲0.0149.44 ▼1.74
Posts /wp-admin/edit.php3.36 ▲0.0049.58 ▼6.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.70 ▼13.54
Media Library /wp-admin/upload.php3.23 ▲0.0031.82 ▼6.46

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

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

Browser metrics Passed 4 tests

WP ragadjust: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.36 ▲0.093.09 ▲1.5743.62 ▼2.62
Dashboard /wp-admin2,195 ▲185.53 ▼0.1588.18 ▼5.5842.81 ▼1.93
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0738.95 ▲1.1533.02 ▼3.85
Add New Post /wp-admin/post-new.php1,529 ▲323.33 ▲0.14636.32 ▼47.7749.35 ▼16.46
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0797.46 ▼14.7644.53 ▼3.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ragadjust/ragadjust.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: hyphenation, rag, preposition, typography

wp-ragadjust/ragadjust.php 92% from 13 tests

Analyzing the main PHP file in "WP ragadjust" version 1.0.0
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-ragadjust.php" instead of "ragadjust.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin60 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript220432
PHP1131625
Markdown1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected