Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.39ms] Passed 4 tests
Server-side resources used by Flippa Online Business Valuation Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.07 | 41.40 ▲0.46 |
Dashboard /wp-admin | 3.42 ▲0.07 | 53.15 ▼3.81 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 52.96 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.09 | 96.31 ▼2.90 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 37.82 ▲4.26 |
Server storage [IO: ▲0.64MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flippa Online Business Valuation Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.24 ▼0.14 | 1.94 ▲0.15 | 42.76 ▲2.29 |
Dashboard /wp-admin | 2,235 ▲61 | 5.54 ▲0.02 | 96.47 ▲1.21 | 40.41 ▼3.84 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.85 ▲0.83 | 46.69 ▲5.03 | 35.97 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.69 ▲0.54 | 690.95 ▲73.59 | 38.72 ▼11.13 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 5.12 ▲0.92 | 108.25 ▼3.11 | 43.89 ▲0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/flippa-estimate-your-business/includes/__constants.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function flippa\\plugin_dir_url() in wp-content/plugins/flippa-estimate-your-business/FlippaPlugin.php:40
- > PHP Warning
Use of undefined constant FLIPPA_PLUGIN_ROOT - assumed 'FLIPPA_PLUGIN_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/flippa-estimate-your-business/includes/__constants.php on line 5
- > PHP Warning
Use of undefined constant FLIPPA_DS - assumed 'FLIPPA_DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/flippa-estimate-your-business/includes/__constants.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'flippa\\FlippaCalculator' not found in wp-content/plugins/flippa-estimate-your-business/templates/flippa_api_estimate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function flippa\\add_action() in wp-content/plugins/flippa-estimate-your-business/includes/FlippaAdmin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: ecommerce, online, business, store, valuation...
flippa-estimate-your-business/FlippaPlugin.php 85% from 13 tests
The main PHP file in "Flippa Online Business Valuation Plugin" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("flippa-estimate-your-business.php" instead of "FlippaPlugin.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
Good job! No executable or dangerous file extensions detected16,093 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 3,147 | 2,613 | 15,126 |
PHP | 6 | 141 | 11 | 582 |
CSS | 1 | 73 | 1 | 374 |
SVG | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 19 | 86.36% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin