Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲0.51ms] Passed 4 tests
This is a short check of server-side resources used by Flexia Core
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 43.53 ▲1.71 |
Dashboard /wp-admin | 3.69 ▲0.35 | 50.27 ▼13.47 |
Posts /wp-admin/edit.php | 3.75 ▲0.38 | 57.37 ▲4.44 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 109.93 ▲9.54 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 44.90 ▲9.36 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpins_flexia-core_force_tracked |
wpins_flexia-core_migrated |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wpdeveloper_plugins_data |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flexia Core
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.32 ▼1.20 | 8.45 ▲6.54 | 41.94 ▼2.34 |
Dashboard /wp-admin | 2,227 ▲50 | 5.59 ▼0.07 | 91.40 ▼1.23 | 41.82 ▼1.08 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.15 ▲0.14 | 39.95 ▲4.64 | 35.91 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.79 ▲0.65 | 697.17 ▲62.13 | 56.82 ▲2.04 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.23 ▲0.03 | 102.83 ▼2.09 | 43.01 ▼4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- wpins_flexia-core_migrated
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- wpins_flexia-core_force_tracked
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
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexia-core/public/shortcodes/class-flexia-core-shortcodes.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: customizer, bootstrap-4, metabox, shortcodes, google analytics...
flexia-core/flexia-core.php Passed 13 tests
The main PHP file in "Flexia Core" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Core plugin for Flexia theme. Controls all the plugin territory functionalities.
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
Success! There were no dangerous files found in this plugin1,731 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 302 | 1,077 | 1,726 |
JavaScript | 1 | 2 | 27 | 3 |
SVG | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 2 | 2.00% |
▷ Public methods | 80 | 80.00% |
▷ Protected methods | 6 | 6.00% |
▷ Private methods | 14 | 14.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.40MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/flexia-banner.png | 263.84KB | 291.70KB | 0.00% |
admin/img/flexia-logo-text.png | 10.97KB | 6.03KB | ▼ 45.03% |
admin/img/eael-pro-banner.png | 131.60KB | 147.63KB | 0.00% |