Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.75ms] Passed 4 tests
Analyzing server-side resources used by Page Takeover
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 51.55 ▲9.36 |
Dashboard /wp-admin | 3.53 ▲0.22 | 46.98 ▼6.42 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 47.64 ▲1.68 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.88 ▼7.04 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 45.08 ▲8.80 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page Takeover
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.13 ▼1.06 | 5.67 ▲3.38 | 41.64 ▼7.17 |
Dashboard /wp-admin | 2,217 ▲29 | 5.86 ▼0.04 | 98.98 ▼16.09 | 89.10 ▲42.94 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.00 ▼0.03 | 34.10 ▼2.20 | 34.74 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,678 ▲145 | 22.43 ▼0.84 | 767.96 ▲100.97 | 66.30 ▲15.81 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.16 ▼0.07 | 97.41 ▼2.53 | 73.08 ▲29.88 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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 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
The following issues need your attention
- 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/page-takeover/includes/general.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-takeover/includes/admin.php:38
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
page-takeover/page-takeover.php Passed 13 tests
"Page Takeover" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
Create a full-screen overlay without a developer. Promote your content and offers in a full-screen popup.
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 plugin1,588 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 297 | 239 | 953 |
CSS | 2 | 81 | 34 | 476 |
JavaScript | 3 | 36 | 21 | 159 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-close.png | 1.04KB | 0.25KB | ▼ 76.48% |
images/icon.png | 1.18KB | 0.38KB | ▼ 68.13% |