78% cubewp

Code Review | Anonymize Cube

WordPress plugin Anonymize Cube scored78%from 54 tests.

About plugin

  • Plugin page: cubewp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3.8
  • WordPress version: 6.3.1
  • First release: Mar 22, 2014
  • Latest release: Mar 22, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Hansdeboeck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Anonymize Cube
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.62 ▲6.27
Dashboard /wp-admin3.33 ▼0.0246.96 ▼15.31
Posts /wp-admin/edit.php3.38 ▲0.0246.67 ▼4.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.40 ▼2.82
Media Library /wp-admin/upload.php3.25 ▲0.0234.81 ▲1.70
Anonymize Links /wp-admin/options-general.php?page=anonymize_links-options3.1931.79

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
anonymize_links_service
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Anonymize Cube
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.36 ▲0.082.07 ▲0.2540.30 ▼2.09
Dashboard /wp-admin2,199 ▲225.61 ▲0.0390.66 ▼2.0837.73 ▼4.22
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0533.78 ▼6.2234.95 ▼3.10
Add New Post /wp-admin/post-new.php1,531 ▲523.32 ▲0.14649.42 ▲24.1160.89 ▲13.20
Media Library /wp-admin/upload.php1,401 ▲14.12 ▼0.09104.71 ▼4.8444.07 ▲0.61
Anonymize Links /wp-admin/options-general.php?page=anonymize_links-options8151.9922.0625.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=anonymize_links-options
    • > Notice in wp-content/plugins/cubewp/CubeWP.php+73
    Undefined index: protected_links

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cubewp/CubeWP.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

cubewp/CubeWP.php 85% from 13 tests

The principal PHP file in "Anonymize Cube" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cubewp.php" instead of "CubeWP.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

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
Success! There were no dangerous files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1232172
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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