Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼142.26ms] Passed 4 tests
A check of server-side resources used by Fifth Insight
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 47.89 ▲6.65 |
Dashboard /wp-admin | 3.16 ▲0.10 | 54.86 ▼0.03 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 56.34 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 94.23 ▼573.03 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 39.31 ▲0.40 |
FifthInsight /wp-admin/admin.php?page=analyze-performance | 3.07 | 37.26 |
Settings /wp-admin/admin.php?page=performance-setting | 3.07 | 35.24 |
Overview /wp-admin/admin.php?page=performance-report | 3.05 | 37.66 |
Comparison /wp-admin/admin.php?page=performance-comparison | 3.05 | 35.84 |
Full Report /wp-admin/admin.php?page=performance-full-report | 3.07 | 44.36 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/fifth-insight/" and "wp-content/uploads/"
- (new file) wp-content/data/.empty
Filesystem: 33 new files
Database: 2 new tables, no new options
New tables |
---|
wp_fifth_insight_report |
wp_fifth_insight_api_key |
Browser metrics Passed 4 tests
An overview of browser requirements for Fifth Insight
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲168 | 16.26 ▲0.63 | 10.56 ▼0.91 | 59.12 ▲6.56 |
Dashboard /wp-admin | 3,028 ▲94 | 6.68 ▲0.74 | 170.94 ▲6.52 | 127.60 ▲2.89 |
Posts /wp-admin/edit.php | 2,800 ▲61 | 3.01 ▲0.29 | 78.27 ▲8.70 | 136.98 ▲39.32 |
Add New Post /wp-admin/post-new.php | 1,660 ▼23 | 21.82 ▲3.10 | 312.16 ▼107.58 | 134.47 ▲7.30 |
Media Library /wp-admin/upload.php | 1,868 ▲61 | 5.38 ▲0.37 | 165.98 ▲1.65 | 148.85 ▲29.17 |
FifthInsight /wp-admin/admin.php?page=analyze-performance | 1,266 | 2.56 | 62.89 | 128.33 |
Settings /wp-admin/admin.php?page=performance-setting | 1,373 | 2.57 | 83.04 | 132.48 |
Overview /wp-admin/admin.php?page=performance-report | 1,384 | 2.57 | 62.21 | 130.23 |
Comparison /wp-admin/admin.php?page=performance-comparison | 1,387 | 2.57 | 66.20 | 128.54 |
Full Report /wp-admin/admin.php?page=performance-full-report | 1,384 | 2.56 | 68.97 | 129.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=performance-comparison
- > Notice in wp-content/plugins/fifth-insight/includes/hooks.php+126
Only variables should be passed by reference
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=performance-full-report
- > Notice in wp-content/plugins/fifth-insight/includes/ajax.php+15
Trying to get property 'api_key' of non-object
- > GET request to /wp-admin/admin.php?page=performance-report
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/fifth-insight/includes/hooks.php+59
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=performance-comparison
- > Notice in wp-content/plugins/fifth-insight/includes/hooks.php+119
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=performance-comparison
- > Notice in wp-content/plugins/fifth-insight/includes/hooks.php+119
Trying to get property 'url' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=performance-full-report
- > Notice in wp-content/plugins/fifth-insight/includes/ajax.php+15
Undefined variable: result
SRP 0% 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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fifth-insight/includes/header.php
- > /wp-content/plugins/fifth-insight/index.php
- > /wp-content/plugins/fifth-insight/includes/modal.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/fifth-insight/includes/ajax.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fifth-insight/front/full_report_.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fifth-insight/front/comparison.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fifth-insight/front/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fifth-insight/includes/topbar_.php:2
- > PHP Notice
Undefined variable: output in wp-content/plugins/fifth-insight/includes/header.php on line 7
- > PHP Notice
Undefined variable: desktop in wp-content/plugins/fifth-insight/includes/desktop.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fifth-insight/includes/desktop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fifth-insight/front/full_report.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fifth-insight/front/report.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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== fifth-insight ===
) - Requires php: Invalid version format
fifth-insight/index.php 85% from 13 tests
The main file in "Fifth Insight" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("fifth-insight.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,643 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 418 | 32 | 1,467 |
CSS | 4 | 36 | 9 | 157 |
JavaScript | 5 | 4 | 19 | 17 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin