Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.28ms] Passed 4 tests
An overview of server-side resources used by Royal Copyright Text
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.79 ▲3.20 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.77 ▼4.82 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 36.11 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.18 ▼1,175.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.25 ▲0.36 |
Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Royal Copyright Text
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲21 | 15.99 ▲0.79 | 5.72 ▼0.63 | 2.42 ▼0.27 |
Dashboard /wp-admin | 2,899 ▲38 | 6.13 ▼0.20 | 117.84 ▼16.58 | 141.07 ▼18.63 |
Posts /wp-admin/edit.php | 2,698 ▲7 | 3.23 ▼0.00 | 65.92 ▼5.18 | 145.25 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,638 ▼52 | 20.12 ▼1.03 | 434.47 ▼2.72 | 143.90 ▼7.81 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.53 ▲0.01 | 142.80 ▲4.68 | 163.27 ▼24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 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)
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/royal-copyright-text/royal-copyright-text.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
4 plugin tags: tree, menu tree, family tree, menu
royal-copyright-text/royal-copyright-text.php 92% from 13 tests
The primary PHP file in "Royal Copyright Text" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin26 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 9 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin