Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.67ms] Passed 4 tests
A check of server-side resources used by API for Apex TownControl
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.79 ▲0.43 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.47 ▼2.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.97 ▼6.43 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.79 ▼26.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.03 ▲3.46 |
towncontrol /wp-admin/options-general.php?page=towncontrol | 3.26 | 34.91 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by API for Apex TownControl
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.64 ▼0.71 | 21.95 ▲20.28 | 40.95 ▼4.65 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.00 | 85.01 ▼8.15 | 38.73 ▼4.56 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 38.40 ▲2.01 | 32.27 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,529 ▼1 | 23.57 ▲0.30 | 736.96 ▲75.97 | 55.36 ▲4.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.11 | 112.42 ▲3.62 | 47.78 ▲0.61 |
towncontrol /wp-admin/options-general.php?page=towncontrol | 847 | 2.03 | 22.46 | 28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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)
Even though everything seems fine, this is not 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/api-for-apex-towncontrol/core/includes/classes/class-api-for-apex-towncontrol-options.php:122
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Option Screen), #2 (Demo Arrests Page)
api-for-apex-towncontrol/api-for-apex-towncontrol.php 92% from 13 tests
The primary PHP file in "API for Apex TownControl" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: A good plugin description is longer than 10 characters (currently 4 characters long)
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
Everything looks great! No dangerous files found in this plugin332 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 156 | 408 | 330 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin