84% betterify

Code Review | Betterify

WordPress plugin Betterify scored 84% from 54 tests.

About plugin

  • Plugin page: betterify
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2014
  • Latest release: Nov 14, 2014
  • Number of updates: 5
  • Update frequency: every 7.2 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

10+ active / 2,313 total downloads


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.29ms] Passed 4 tests

An overview of server-side resources used by Betterify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.47 ▼4.87
Dashboard /wp-admin3.31 ▲0.0147.17 ▲1.66
Posts /wp-admin/edit.php3.36 ▲0.0047.34 ▼3.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.08 ▲0.50
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼0.92

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Betterify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.181.87 ▼0.1642.08 ▼6.10
Dashboard /wp-admin2,209 ▲214.87 ▲0.03109.00 ▼8.2942.76 ▼3.33
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0238.93 ▼2.9135.49 ▼0.09
Add New Post /wp-admin/post-new.php1,519 ▲523.39 ▲5.86580.45 ▼79.7955.12 ▼0.08
Media Library /wp-admin/upload.php1,388 ▼04.35 ▲0.1595.74 ▼3.7240.88 ▼2.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/betterify/betterify.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: magic, optimize, seo, security, better...

betterify/betterify.php Passed 13 tests

The main PHP script in "Betterify" version 0.2 is automatically included on every request by WordPress
35 characters long description:
Making WordPress websites...better.

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 detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
No PNG images were found in this plugin