Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼142.82ms] Passed 4 tests
Server-side resources used by Starts for editors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 47.11 ▲12.03 |
Dashboard /wp-admin | 3.09 ▲0.03 | 48.59 ▲1.01 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 49.20 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 98.46 ▼575.97 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 37.09 ▲3.73 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, no new options
New tables |
---|
wp_SWS_Visitor_count |
Browser metrics Passed 4 tests
A check of browser resources used by Starts for editors
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,019 ▲423 | 20.55 ▲4.73 | 19.69 ▲12.35 | 60.57 ▲8.54 |
Dashboard /wp-admin | 3,121 ▲184 | 8.12 ▲1.97 | 159.94 ▲5.59 | 130.60 ▲15.28 |
Posts /wp-admin/edit.php | 2,887 ▲148 | 5.06 ▲2.37 | 82.42 ▲6.69 | 98.98 ▲1.18 |
Add New Post /wp-admin/post-new.php | 4,071 ▲2,388 | 19.43 ▲0.69 | 497.49 ▲102.38 | 120.83 ▲1.02 |
Media Library /wp-admin/upload.php | 1,955 ▲148 | 7.73 ▲2.73 | 180.20 ▼1.45 | 135.79 ▲12.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_SWS_Visitor_count
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/stats4editors/chart.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/stats4editors/Stats4Editors.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stats4editors/Stats4Editors.php:64
- > PHP Notice
Undefined index: Other in wp-content/plugins/stats4editors/chart.php on line 42
- > PHP Notice
Undefined index: bots in wp-content/plugins/stats4editors/chart.php on line 40
- > PHP Notice
Undefined index: Chrome in wp-content/plugins/stats4editors/chart.php on line 36
- > PHP Notice
Undefined index: IE in wp-content/plugins/stats4editors/chart.php on line 34
- > PHP Notice
Undefined index: FF in wp-content/plugins/stats4editors/chart.php on line 38
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (To follow (when I write a post about it).)
- Contributors: The plugin contributors field is missing
stats4editors/Stats4Editors.php 92% from 13 tests
Analyzing the main PHP file in "Starts for editors" version 0.3
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("stats4editors.php" instead of "Stats4Editors.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin201 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 45 | 201 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin