Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cpk-ultimate-archives/cpkUltimateArchives.php+344
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.62ms] Passed 4 tests
A check of server-side resources used by CPK Ultimate Archives
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.86 ▲0.09 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.28 ▼5.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.38 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 101.01 ▲1.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.88 ▼0.16 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_cpkultimatearchives |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
CPK_instance_options |
CPK_instance_keys |
Browser metrics Passed 4 tests
Checking browser requirements for CPK Ultimate Archives
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.28 | 2.42 ▲0.53 | 45.37 ▲3.80 |
Dashboard /wp-admin | 2,192 ▲18 | 5.65 ▼0.06 | 88.12 ▼1.24 | 41.40 ▼4.98 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.02 | 34.18 ▼6.12 | 40.43 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.29 ▲5.71 | 750.19 ▲117.72 | 57.66 ▲3.86 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.14 ▼0.07 | 111.48 ▲13.98 | 46.11 ▲5.27 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- CPK_instance_keys
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- CPK_instance_options
- widget_cpkultimatearchives
- widget_recent-comments
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)
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpk-ultimate-archives/cpkUltimateArchives.php:27
- > 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 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
10 plugin tags: query, daily, archive, sidebar, weekly...
cpk-ultimate-archives/cpkUltimateArchives.php 92% from 13 tests
"CPK Ultimate Archives" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cpk-ultimate-archives.php" instead of "cpkUltimateArchives.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin330 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 30 | 330 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 were not PNG files found in your plugin