84% statut-3d-cube

Code Review | NEW! Interactive 3D Cube for Menu or Banner. No Coding, No Ads, All Themes.

WordPress plugin NEW! Interactive 3D Cube for Menu or Banner. No Coding, No Ads, All Themes. scored84%from 54 tests.

About plugin

  • Plugin page: statut-3d-cube
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Apr 22, 2021
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: statut (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.37ms] Passed 4 tests

This is a short check of server-side resources used by NEW! Interactive 3D Cube for Menu or Banner. No Coding, No Ads, All Themes.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.99 ▼4.62
Dashboard /wp-admin3.32 ▲0.0245.30 ▼2.99
Posts /wp-admin/edit.php3.37 ▲0.0246.16 ▼2.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.23 ▼23.26
Media Library /wp-admin/upload.php3.24 ▲0.0134.39 ▲2.82

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
s3dc-settings
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for NEW! Interactive 3D Cube for Menu or Banner. No Coding, No Ads, All Themes.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲21615.32 ▲0.9440.54 ▲38.8237.17 ▼14.04
Dashboard /wp-admin2,241 ▲536.00 ▲0.8899.77 ▼4.7538.79 ▼4.60
Posts /wp-admin/edit.php2,127 ▲352.03 ▲0.0134.23 ▼10.6730.55 ▼6.06
Add New Post /wp-admin/post-new.php1,527 ▲1317.61 ▼0.11698.94 ▲83.3262.63 ▲6.62
Media Library /wp-admin/upload.php1,427 ▲364.24 ▼0.09107.77 ▲6.9645.94 ▲3.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • s3dc-settings
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/statut-3d-cube/includes/client.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/statut-3d-cube/statut-3d-cube.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/statut-3d-cube/includes/admin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

statut-3d-cube/statut-3d-cube.php Passed 13 tests

The principal PHP file in "NEW! Interactive 3D Cube for Menu or Banner. No Coding, No Ads, All Themes." v. 1.2.4 is loaded by WordPress automatically on each request
29 characters long description:
Displays interactive 3D cube.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin667 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5441343
PHP44712184
HTML3100101
CSS28039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.50
▷ Minimum class complexity6.00
▷ Maximum class complexity7.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin