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
Install script ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▲8.75ms] Passed 4 tests
Server-side resources used by Promote Apex
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 65.28 ▲24.43 |
Dashboard /wp-admin | 3.77 ▲0.47 | 107.08 ▲54.76 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 54.61 ▼0.14 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 93.97 ▼3.68 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 50.11 ▲14.38 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
wp_calendar_block_has_published_posts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Promote Apex
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.25 ▼0.38 | 1.81 ▼0.15 | 39.35 ▼5.22 |
Dashboard /wp-admin | 1,745 ▼429 | 5.31 ▼0.36 | 80.11 ▼9.27 | 40.43 ▼0.38 |
Posts /wp-admin/edit.php | 1,277 ▼826 | 1.91 ▼0.07 | 32.25 ▼9.51 | 32.01 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.66 ▲0.69 | 612.11 ▼65.61 | 51.86 ▼4.80 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.16 ▼0.16 | 99.27 ▼2.17 | 43.85 ▼4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- wp_calendar_block_has_published_posts
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/promote-apex/promote-apex.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/promote-apex/templates/modal.php on line 1
- > PHP Notice
Trying to get property 'max_participants' of non-object in wp-content/plugins/promote-apex/templates/event.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/promote-apex/templates/event.php:40
- > PHP Notice
Undefined variable: event in wp-content/plugins/promote-apex/templates/event.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/Base/Enqueue.php:8
- > PHP Notice
Undefined variable: event in wp-content/plugins/promote-apex/templates/event.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/promote-apex/templates/courses.php:9
- > PHP Fatal error
Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/Pages/Admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/WpApi/Callbacks/AdminCallbacks.php:11
- > PHP Notice
Trying to get property 'event_dates' of non-object in wp-content/plugins/promote-apex/templates/event.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: promote, wp, apex
promote-apex/promote-apex.php Passed 13 tests
The main PHP script in "Promote Apex" version 1.3.1 is automatically included on every request by WordPress
52 characters long description:
Plugin used to connect a wordpress website with Apex
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
Everything looks great! No dangerous files found in this plugin9,372 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1 | 7 | 6,314 |
PHP | 28 | 392 | 321 | 2,279 |
JavaScript | 3 | 141 | 61 | 529 |
PO File | 1 | 90 | 106 | 229 |
JSON | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 112 | |
▷ Static methods | 8 | 7.14% |
▷ Public methods | 108 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.57% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin