79% css3cube

Code Review | CSS3 Cube

WordPress plugin CSS3 Cube scored79%from 54 tests.

About plugin

  • Plugin page: css3cube
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Apr 23, 2015
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: Frank maio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /771 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.94ms] Passed 4 tests

Analyzing server-side resources used by CSS3 Cube
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.69 ▼4.42
Dashboard /wp-admin3.39 ▲0.0846.14 ▼0.00
Posts /wp-admin/edit.php3.44 ▲0.0844.68 ▼8.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.19 ▼27.18
Media Library /wp-admin/upload.php3.31 ▲0.0834.61 ▲3.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by CSS3 Cube
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.30 ▼1.092.77 ▲0.8242.36 ▼1.46
Dashboard /wp-admin2,206 ▲185.83 ▼0.0299.44 ▼8.1339.93 ▼0.63
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0234.39 ▼1.4632.81 ▼0.71
Add New Post /wp-admin/post-new.php1,514 ▼517.70 ▼5.53645.10 ▲65.7552.35 ▲0.38
Media Library /wp-admin/upload.php1,385 ▼34.19 ▲0.0697.68 ▲1.9645.56 ▲5.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/css3cube/css3cube.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/css3cube/templates/cube-template.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: css3, preview, customizer, front-page, cube

css3cube/css3cube.php Passed 13 tests

The principal PHP file in "CSS3 Cube" v. 1.0.1 is loaded by WordPress automatically on each request
133 characters long description:
Integrates a cube-template for displaying page previews on front page in css3 cube fashion, configurable through the wp-customizer .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,160 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP28797423
CSS11341265
JavaScript48267232
Sass1285215
Markdown116019
Ruby16146

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods1178.57%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin