Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.11ms] Passed 4 tests
Server-side resources used by Simple Counter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.61 ▼0.23 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.98 ▼8.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.94 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 79.07 ▼15.96 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.44 ▲0.23 |
Simple Counter /wp-admin/options-general.php?page=simple-counter | 3.29 | 32.68 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.29 ▼1.13 | 4.65 ▲2.59 | 43.72 ▼0.15 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.99 | 100.51 ▼17.83 | 38.70 ▼5.34 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 38.35 ▲1.78 | 34.70 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.23 ▲0.10 | 605.27 ▼96.69 | 62.25 ▼10.47 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.05 | 103.33 ▼7.36 | 40.88 ▼6.89 |
Simple Counter /wp-admin/options-general.php?page=simple-counter | 976 | 2.06 | 23.96 | 43.73 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/abwp-simple-counter/includes/page-admin-counters.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/abwp-simple-counter/simple-counter.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
7 plugin tags: tools, google, statistics, yandex, analytics...
abwp-simple-counter/simple-counter.php 92% from 13 tests
Analyzing the main PHP file in "Simple Counter" version 1.0.2
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("abwp-simple-counter.php" instead of "simple-counter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin373 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 13 | 275 |
PO File | 1 | 29 | 31 | 98 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin