84% three-d-cube

Code Review | Three D Cube

WordPress plugin Three D Cube scored84%from 54 tests.

About plugin

  • Plugin page: three-d-cube
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Feb 2, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: markomaksym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 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.02MB] [CPU: ▼6.77ms] Passed 4 tests

Server-side resources used by Three D Cube
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.96 ▲2.74
Dashboard /wp-admin3.32 ▼0.0248.54 ▼15.84
Posts /wp-admin/edit.php3.44 ▲0.0849.08 ▼0.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.29 ▼13.70
Media Library /wp-admin/upload.php3.25 ▲0.0243.69 ▲5.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Three D Cube
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.36 ▲0.0817.95 ▲16.1542.99 ▲0.26
Dashboard /wp-admin2,222 ▲425.61 ▼0.0987.14 ▼2.0580.28 ▲38.52
Posts /wp-admin/edit.php2,124 ▲212.00 ▲0.0438.07 ▼2.2232.97 ▼4.63
Add New Post /wp-admin/post-new.php1,701 ▲17522.44 ▼0.66745.23 ▲70.7557.08 ▲0.95
Media Library /wp-admin/upload.php1,418 ▲184.14 ▼0.07102.40 ▼2.8063.23 ▲14.83

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/three-d-cube/includes/admin/views/main-page.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: 3d, images, advert

three-d-cube/three-d-cube.php Passed 13 tests

The main file in "Three D Cube" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
17 characters long description:
Brief description

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,336 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS40152,269
JavaScript4519941,554
PHP25596391795
SVG100685
PO File18833

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.23
Average class complexity2.85
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes15.26%
Methods58
▷ Static methods2237.93%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png1.83KB1.20KB▼ 34.35%