Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.25ms] Passed 4 tests
Analyzing server-side resources used by WooBoPolis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.06 ▼0.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.57 ▼0.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.30 ▲4.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.32 ▼0.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.25 ▲0.41 |
CuboPolis Settings /wp-admin/options-general.php?page=cubopolis | 3.25 | 29.48 |
Server storage [IO: ▲0.05MB] [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: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooBoPolis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.08 | 1.58 ▼0.35 | 39.69 ▲0.10 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▼0.05 | 98.00 ▲0.53 | 38.64 ▼3.85 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▲0.01 | 37.97 ▲1.84 | 41.48 ▲5.91 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 18.28 ▼4.94 | 628.87 ▼63.32 | 50.43 ▼2.55 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.13 ▼0.04 | 102.35 ▲2.54 | 45.58 ▲3.35 |
CuboPolis Settings /wp-admin/options-general.php?page=cubopolis | 865 | 2.05 | 24.08 | 24.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woobopolis/views/views/admin/viewAdmin.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WooBoPolis\\add_action() in wp-content/plugins/woobopolis/WooBoPolis.php:57
- > PHP Fatal error
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 86% 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
1 plugin tags: ecommerce
woobopolis/WooBoPolis.php 69% from 13 tests
The main file in "WooBoPolis" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Git Repository: A Git repository was detected inside this plugin
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woobopolis.php" instead of "WooBoPolis.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin697 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 157 | 194 | 612 |
JSON | 4 | 3 | 0 | 77 |
Markdown | 2 | 6 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 10 | 18.52% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
Functions | 6 | |
▷ Named functions | 6 | 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 are no PNG files in this plugin