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.01MB] [CPU: ▼2.96ms] Passed 4 tests
A check of server-side resources used by In Page Script
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.23 ▼2.21 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.49 ▼1.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.13 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.36 ▼9.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.85 ▲4.73 |
In Page Script /wp-admin/options-general.php?page=in-page-script | 3.25 | 30.07 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for In Page Script
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.13 | 1.69 ▼0.13 | 38.97 ▼11.59 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼0.06 | 104.11 ▼0.75 | 38.50 ▼8.94 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.96 ▼0.04 | 39.27 ▼1.33 | 34.78 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.26 ▲0.17 | 664.69 ▲59.52 | 53.98 ▼2.22 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.29 ▲0.05 | 100.52 ▲1.67 | 43.48 ▼0.82 |
In Page Script /wp-admin/options-general.php?page=in-page-script | 826 | 2.03 | 22.37 | 23.38 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/in-page-script/in-page-script.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in-page-script/setting-page.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Screenshot)
in-page-script/in-page-script.php Passed 13 tests
The principal PHP file in "In Page Script" v. 0.1 is loaded by WordPress automatically on each request
129 characters long description:
This plugin helps to add scripts into the header (before close tag </HEAD>) or the footer (before close tag </BODY>).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected178 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 31 | 178 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected