Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.13ms] Passed 4 tests
An overview of server-side resources used by Add Script
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 51.19 ▲10.73 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.39 ▼6.93 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.46 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.50 ▼12.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.52 ▲4.00 |
AddScript /wp-admin/options-general.php?page=addscript-settings | 3.23 | 33.56 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Add Script
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.02 | 1.70 ▲0.10 | 43.42 ▼6.90 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▼0.09 | 105.73 ▼0.88 | 39.62 ▼0.32 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 38.93 ▲0.04 | 34.87 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.34 ▲5.23 | 654.68 ▲55.45 | 64.05 ▲0.58 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.03 | 96.76 ▼2.04 | 45.47 ▲4.20 |
AddScript /wp-admin/options-general.php?page=addscript-settings | 799 | 2.02 | 24.41 | 25.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Addscript\\Base' not found in wp-content/plugins/addscript/src/Addscript/Admin.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/addscript/views/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Addscript\\Base' not found in wp-content/plugins/addscript/src/Addscript/Frontend.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 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: script
addscript/addscript.php Passed 13 tests
This is the main PHP file of "Add Script" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Simple plugin to add Google Analytics in the footer
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 plugin188 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 184 | 321 | 188 |
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.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 40.00% |
▷ Protected methods | 9 | 45.00% |
▷ Private methods | 3 | 15.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin