Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲3.81ms] Passed 4 tests
A check of server-side resources used by Category Country Aware Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 45.73 ▲2.62 |
Dashboard /wp-admin | 3.87 ▲0.56 | 56.82 ▲5.94 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 50.37 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 98.91 ▲5.02 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 41.51 ▲5.79 |
Category Country Aware goodies /wp-admin/options-general.php?page=cca-sitewide-settings | 3.69 | 42.60 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
CCA_WID_VERSION |
db_upgraded |
ccax_options |
widget_recent-comments |
widget_recent-posts |
ccax_post_widgets |
widget_ccatextwid |
Browser metrics Passed 4 tests
A check of browser resources used by Category Country Aware Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.46 ▼0.80 | 2.15 ▲0.17 | 46.56 ▼11.28 |
Dashboard /wp-admin | 2,216 ▲28 | 5.86 ▼0.08 | 113.07 ▼15.33 | 44.19 ▼4.30 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.06 ▲0.01 | 40.64 ▲2.09 | 35.48 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 23.31 ▲0.33 | 634.05 ▼27.50 | 58.25 ▼0.22 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.24 ▲0.09 | 104.48 ▼4.53 | 48.82 ▲1.38 |
Category Country Aware goodies /wp-admin/options-general.php?page=cca-sitewide-settings | 904 | 2.20 | 43.56 | 53.59 |
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
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_ccatextwid
- theysaidso_admin_options
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Requires php: Version not formatted correctly
category-country-aware/cca_init.php 92% from 13 tests
This is the main PHP file of "Category Country Aware Wordpress" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("category-country-aware.php" instead of "cca_init.php")
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 plugin3,256 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 450 | 381 | 2,442 |
Pascal | 3 | 101 | 3,141 | 639 |
Markdown | 1 | 52 | 0 | 104 |
CSS | 1 | 6 | 0 | 37 |
JavaScript | 1 | 0 | 5 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 48.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 14 | 18.67% |
▷ Public methods | 47 | 62.67% |
▷ Protected methods | 6 | 8.00% |
▷ Private methods | 22 | 29.33% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected