Benchmarks
Plugin footprint 65% 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: ▼1.22MB] [CPU: ▼45.66ms] Passed 4 tests
A check of server-side resources used by Creative Tim's Rotating CSS Cards
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.71 | 13.04 ▼30.64 |
Dashboard /wp-admin | 2.83 ▼0.52 | 15.96 ▼36.34 |
Posts /wp-admin/edit.php | 2.83 ▼0.57 | 16.16 ▼35.22 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.10 | 17.32 ▼80.45 |
Media Library /wp-admin/upload.php | 2.83 ▼0.44 | 14.64 ▼23.41 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Creative Tim's Rotating CSS Cards
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.37 ▼0.12 | 1.77 ▼0.16 | 40.96 ▼0.33 |
Dashboard /wp-admin | 2,198 ▲27 | 5.57 ▼0.00 | 85.82 ▼7.66 | 43.17 ▼0.41 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.02 | 35.09 ▼2.43 | 39.77 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.29 ▲0.10 | 639.93 ▼57.83 | 51.65 ▼0.22 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.04 | 98.17 ▼15.90 | 40.93 ▼7.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/creative-tim-rotating-css-cards/creative-tim-css-cards.php+188
Use of undefined constant INBOUND_PRO_SLUG - assumed 'INBOUND_PRO_SLUG' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/creative-tim-rotating-css-cards/creative-tim-css-cards.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/creative-tim-rotating-css-cards/creative-tim-css-cards.php:33
- > PHP Warning
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid url: "mailto:hudson.atwell@gmail.com"
creative-tim-rotating-css-cards/creative-tim-css-cards.php 77% from 13 tests
"Creative Tim's Rotating CSS Cards" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("creative-tim-rotating-css-cards.php" instead of "creative-tim-css-cards.php")
- Domain Path: The domain path points to a folder that does not exist ("/lang/")
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
There were no executable files found in this plugin6,393 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,083 | 21 | 6,230 |
PHP | 1 | 32 | 33 | 131 |
Markdown | 1 | 7 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 5 | 83.33% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
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 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.72MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/rotating_card_profile3.png | 4.97KB | 0.00KB | ▼ 100.00% |
assets/images/rotating_card_thumb2.png | 266.69KB | 74.99KB | ▼ 71.88% |
assets/images/rotating_card_profile2.png | 22.52KB | 13.52KB | ▼ 39.95% |
assets/images/rotating_card_profile.png | 95.60KB | 36.91KB | ▼ 61.39% |
assets/images/rotating_card_thumb.png | 137.98KB | 50.98KB | ▼ 63.06% |