Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/easy-copyright/inc/class-easycopyright-custompost.php+328
syntax error, unexpected '}'
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.21ms] Passed 4 tests
Server-side resources used by Easy Copyright
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.77 ▼2.56 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.10 ▼1.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.05 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.15 ▼2.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.78 ▲5.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Copyright: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.60 | 1.77 ▼0.14 | 40.37 ▼1.65 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.92 | 110.81 ▲1.03 | 50.60 ▲9.19 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.04 | 37.37 ▼0.39 | 35.97 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.89 ▼0.33 | 663.32 ▼29.55 | 77.38 ▲21.24 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.01 | 110.25 ▲4.33 | 50.07 ▲6.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright.php:6
- > PHP Parse error
syntax error, unexpected '}' in wp-content/plugins/easy-copyright/inc/class-easycopyright-custompost.php on line 328
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/easy-copyright.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-copyright/inc/class-easycopyright-widget.php:5
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: shortcode, copyright
easy-copyright/easy-copyright.php 92% from 13 tests
The main PHP script in "Easy Copyright" version 1.0.4 is automatically included on every request by WordPress
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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected948 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 134 | 294 | 521 |
Sass | 1 | 42 | 8 | 217 |
CSS | 1 | 35 | 12 | 173 |
Markdown | 1 | 14 | 0 | 23 |
JavaScript | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 26 | 78.79% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin