Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.89ms] Passed 4 tests
A check of server-side resources used by WAJ Copyright Year
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.18 | 36.64 ▲15.58 |
Dashboard /wp-admin | 3.12 ▲0.06 | 53.86 ▲6.49 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 47.18 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 95.48 ▼571.30 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 32.66 ▼8.54 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WAJ Copyright Year
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.94 ▲0.24 | 9.58 ▼0.94 | 46.33 ▼1.75 |
Dashboard /wp-admin | 2,973 ▲42 | 5.90 ▼0.03 | 136.11 ▼11.75 | 107.18 ▼1.37 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 65.49 ▲2.43 | 80.67 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.68 ▲0.05 | 399.59 ▲21.23 | 111.19 ▲5.61 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.05 | 157.13 ▼3.20 | 113.15 ▼6.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-copyright-year/vendor/waughj/test-hash-item/tests/TestHashItemTest.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/waj-copyright-year/waj-copyright-year.php:19
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: year, new year, auto-update, copyright, footer
waj-copyright-year/waj-copyright-year.php Passed 13 tests
This is the main PHP file of "WAJ Copyright Year" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Simple plugin for handling auto-updating copyright year in website footers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin668 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 109 | 166 | 549 |
JSON | 3 | 0 | 0 | 94 |
Markdown | 1 | 11 | 0 | 13 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 36 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.70% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin