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.86MB] [CPU: ▲0.32ms] Passed 4 tests
This is a short check of server-side resources used by Orange Front Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 42.98 ▲5.73 |
Dashboard /wp-admin | 4.35 ▲1.01 | 49.04 ▼10.40 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 49.44 ▲4.52 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 101.74 ▲1.43 |
Media Library /wp-admin/upload.php | 4.35 ▲1.13 | 40.99 ▲5.72 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 4.50 | 43.48 |
Orange Front Page Dashboard /wp-admin/themes.php?page=orange-front-page-panel | 4.50 | 37.74 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Orange Front Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲190 | 13.62 ▼0.76 | 11.18 ▲9.27 | 41.91 ▲2.09 |
Dashboard /wp-admin | 2,249 ▲66 | 5.85 ▲0.72 | 104.30 ▼2.08 | 41.04 ▼0.79 |
Posts /wp-admin/edit.php | 2,140 ▲48 | 2.09 ▲0.08 | 40.48 ▼1.75 | 39.19 ▲3.48 |
Add New Post /wp-admin/post-new.php | 1,575 ▲56 | 18.16 ▼5.01 | 601.25 ▲9.53 | 45.61 ▲2.47 |
Media Library /wp-admin/upload.php | 1,442 ▲60 | 4.27 ▲0.07 | 101.10 ▼0.11 | 47.19 ▲3.34 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,043 | 2.05 | 26.50 | 33.00 |
Orange Front Page Dashboard /wp-admin/themes.php?page=orange-front-page-panel | 1,080 | 2.05 | 33.86 | 36.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/inc/customizer-sections/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/orange-front-page/inc/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/sections/counters.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/sections/team.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/inc/customizer-sections/portfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/inc/customizer-sections/counters.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/sections/testimonials.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/orange-front-page/inc/custom-controls.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/sections/latest-posts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function ot_front_page() in wp-content/plugins/orange-front-page/sections/features.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: one page, front page
orange-front-page/ot_front.php 92% from 13 tests
"Orange Front Page" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("orange-front-page.php" instead of "ot_front.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin9,351 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,159 | 2,010 | 4,934 |
JavaScript | 7 | 1,122 | 405 | 3,168 |
CSS | 3 | 204 | 35 | 1,247 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 12 | 6.94% |
▷ Public methods | 149 | 86.13% |
▷ Protected methods | 24 | 13.87% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/backend/ot-logo.png | 4.09KB | 2.62KB | ▼ 35.89% |