84% worserify

Code Review | Worserify

WordPress plugin Worserify scored84%from 54 tests.

About plugin

  • Plugin page: worserify
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Oct 21, 2014
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: bretterer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /622 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.01MB] [CPU: ▲2.71ms] Passed 4 tests

Analyzing server-side resources used by Worserify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.69 ▲2.50
Dashboard /wp-admin3.32 ▲0.0245.91 ▲1.89
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▲5.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.84 ▲2.49
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▲3.94

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Worserify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3014.48 ▼0.081.71 ▼0.2649.74 ▲6.20
Dashboard /wp-admin2,209 ▲175.88 ▲0.9699.29 ▼6.3739.06 ▲0.75
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.53 ▲1.2034.12 ▼1.77
Add New Post /wp-admin/post-new.php1,542 ▲1418.35 ▼0.02667.63 ▲43.2156.00 ▼9.00
Media Library /wp-admin/upload.php1,385 ▼04.20 ▲0.02101.02 ▼0.2748.06 ▲4.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/worserify/worserify.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Site that has been completely Worserified (results may vary).) image missing
You can look at the official readme.txt

worserify/worserify.php Passed 13 tests

"Worserify" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Making betterify WordPress websites... a little worser.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1165371

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin