Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.39ms] Passed 4 tests
Analyzing server-side resources used by Project Adv Inserter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.76 ▼9.23 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.50 ▼3.43 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.87 ▲5.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 108.48 ▲15.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 39.12 ▲5.63 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
projectadv_inserter_config |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Project Adv Inserter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲125 | 13.52 ▼0.83 | 9.88 ▲8.11 | 37.82 ▼5.19 |
Dashboard /wp-admin | 2,219 ▲28 | 5.81 ▲0.90 | 106.54 ▼0.56 | 38.81 ▼2.90 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.02 | 39.67 ▲3.38 | 36.54 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 18.20 ▼4.98 | 624.36 ▼74.18 | 67.92 ▲12.91 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.18 ▼0.03 | 96.82 ▼3.33 | 42.33 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/project-adv-inserter/src/AdsTxt.php+39
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- projectadv_inserter_config
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Sferica\\Plugins\\ProjectAdvInserter\\get_option() in wp-content/plugins/project-adv-inserter/src/Config.php:69
- > 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)
There were no browser issues 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
2 plugin tags: banner, adv
project-adv-inserter/project-adv-inserter.php Passed 13 tests
Analyzing the main PHP file in "Project Adv Inserter" version 1.2.4
37 characters long description:
Il plugin ufficiale di Projectadv Srl
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
Everything looks great! No dangerous files found in this plugin2,917 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 2,315 |
PHP | 11 | 90 | 44 | 564 |
JavaScript | 3 | 1 | 1 | 38 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 5 | 10.20% |
▷ Public methods | 30 | 61.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 38.78% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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 files were detected