Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.55ms] Passed 4 tests
An overview of server-side resources used by Oktopost Tracking Code
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.44 ▲4.50 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.12 ▼0.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.11 ▲3.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.62 ▼6.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.64 ▼3.31 |
Oktopost /wp-admin/options-general.php?page=oktopost-plugin | 3.21 | 31.50 |
Server storage [IO: ▲0.00MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Oktopost Tracking Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.33 ▲0.05 | 1.72 ▼0.47 | 45.34 ▲4.24 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.08 | 94.97 ▲3.99 | 41.99 ▼0.48 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.99 ▼0.00 | 36.00 ▲0.28 | 34.04 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.05 ▲0.07 | 664.00 ▼29.80 | 58.39 ▲3.52 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.15 ▼0.06 | 99.92 ▼14.31 | 43.34 ▼2.89 |
Oktopost /wp-admin/options-general.php?page=oktopost-plugin | 819 | 2.04 | 25.57 | 28.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/oktopost-tracking-code/includes/tracking-code.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: accountId in wp-content/plugins/oktopost-tracking-code/includes/tracking-code.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/oktopost-tracking-code/oktopost-tracking-code.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/oktopost-tracking-code/includes/admin-page.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: tracking code, oktopost, social media, social media publishing
oktopost-tracking-code/oktopost-tracking-code.php Passed 13 tests
"Oktopost Tracking Code" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Automatically append the Oktopost tracking code to your WordPress template.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin108 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 26 | 108 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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