Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.12ms] Passed 4 tests
This is a short check of server-side resources used by WP Copyright
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.99 ▼3.77 |
Dashboard /wp-admin | 3.44 ▲0.14 | 43.37 ▼7.11 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.85 ▲4.12 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.40 ▼18.52 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.90 ▲0.94 |
WP Copyright /wp-admin/options-general.php?page=zb-wp-copyright-admin | 3.33 | 26.92 |
Server storage [IO: ▲0.04MB] [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: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
zb_wp_copyright_options |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Copyright: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.24 ▼1.40 | 1.56 ▼0.35 | 42.46 ▼1.67 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.18 | 109.11 ▼6.73 | 41.32 ▼3.45 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.01 | 39.26 ▲2.55 | 41.24 ▲7.84 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 17.97 ▼4.95 | 625.49 ▼29.81 | 65.31 ▲17.01 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.21 ▲0.02 | 94.70 ▼7.09 | 41.10 ▼4.67 |
WP Copyright /wp-admin/options-general.php?page=zb-wp-copyright-admin | 839 | 2.02 | 27.57 | 33.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-copyright/main.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: Please describe screenshot #4 in wp-copyright/assets to your readme.txt
wp-copyright/main.php 92% from 13 tests
Analyzing the main PHP file in "WP Copyright" version 2.0.4
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-copyright.php" instead of "main.php")
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 plugin659 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 197 | 251 | 616 |
PO File | 1 | 8 | 8 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 15 | 38.46% |
▷ Anonymous functions | 24 | 61.54% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin