Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲1.93ms] Passed 4 tests
This is a short check of server-side resources used by CC-Update
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 41.49 ▼1.45 |
Dashboard /wp-admin | 3.67 ▲0.36 | 52.57 ▲3.73 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 50.84 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 96.10 ▲3.41 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 39.23 ▲7.26 |
Logs /wp-admin/admin.php?page=cc-update-logs | 3.52 | 38.83 |
Settings /wp-admin/admin.php?page=cc-update-settings | 3.52 | 38.27 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cc_update_log |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CC-Update
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.19 ▼1.47 | 1.50 ▼0.38 | 40.26 ▼8.78 |
Dashboard /wp-admin | 2,245 ▲60 | 4.80 ▼1.02 | 112.16 ▲12.26 | 42.17 ▼1.61 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.03 ▲0.01 | 35.76 ▼0.99 | 31.32 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.20 ▲5.58 | 592.89 ▲8.60 | 51.02 ▼9.46 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.22 ▲0.04 | 102.10 ▲3.41 | 40.87 ▼4.05 |
Logs /wp-admin/admin.php?page=cc-update-logs | 921 | 2.04 | 25.80 | 25.47 |
Settings /wp-admin/admin.php?page=cc-update-settings | 944 | 2.17 | 25.44 | 25.52 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (**CC-Update Settings** - Visit the 'Update > Settings' page, select your preferred options and save them.), #2 (**CC-Update Logs** - Visit the 'Update > Logs' page to review latest updates logs.)
cc-update/plugin.php 92% from 13 tests
This is the main PHP file of "CC-Update" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cc-update.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin1,633 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 406 | 426 | 1,410 |
PO File | 1 | 41 | 45 | 114 |
JSON | 3 | 0 | 0 | 94 |
Markdown | 1 | 5 | 0 | 8 |
CSS | 2 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 20 | 15.75% |
▷ Public methods | 106 | 83.46% |
▷ Protected methods | 18 | 14.17% |
▷ Private methods | 3 | 2.36% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 62.09KB | 18.92KB | ▼ 69.53% |
screenshot-2.png | 72.99KB | 20.66KB | ▼ 71.70% |