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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.69 ▼4.42 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.14 ▼0.00 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.68 ▼8.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.19 ▼27.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.30 ▼1.09 | 2.77 ▲0.82 | 42.36 ▼1.46 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.02 | 99.44 ▼8.13 | 39.93 ▼0.63 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▼0.02 | 34.39 ▼1.46 | 32.81 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.70 ▼5.53 | 645.10 ▲65.75 | 52.35 ▲0.38 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▲0.06 | 97.68 ▲1.96 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 97 | 423 |
CSS | 1 | 13 | 41 | 265 |
JavaScript | 4 | 82 | 67 | 232 |
Sass | 1 | 28 | 5 | 215 |
Markdown | 1 | 16 | 0 | 19 |
Ruby | 1 | 6 | 14 | 6 |
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 code | 0.12 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 11 | 78.57% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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