Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/futura/lib/futura-activation.php+13
Undefined variable: wp_error
Server metrics [RAM: ▲0.53MB] [CPU: ▲2.34ms] 75% from 4 tests
Server-side resources used by FUTURA
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,185.59ms on /wp-admin/admin.php?page=futura-tag)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 46.28 ▲8.10 |
Dashboard /wp-admin | 3.86 ▲0.55 | 47.77 ▲1.52 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 49.24 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 94.28 ▲0.52 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.88 ▲2.96 |
Detail Setting /wp-admin/admin.php?page=futura-setting | 3.73 | 33.78 |
Tag Suggestions /wp-admin/admin.php?page=futura-tag | 3.75 | 1,185.59 |
Design Setting /wp-admin/admin.php?page=futura-design | 3.69 | 32.13 |
Basic Setting /wp-admin/admin.php?page=futura | 3.74 | 37.09 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_futura_related |
futura_html_border_color |
futura_html_posts_wrap_bg_color |
widget_recent-posts |
futura_content_percentage |
futura_summary_font_size |
widget_futura_search |
futura_html_h3_font_size |
widget_recent-comments |
futura_number_of_posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FUTURA
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.84 ▼0.51 | 5.60 ▲3.96 | 38.70 ▼7.26 |
Dashboard /wp-admin | 2,245 ▲59 | 5.24 ▲0.32 | 119.63 ▲11.99 | 39.06 ▼5.73 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.35 ▲0.32 | 43.02 ▲7.06 | 36.32 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 20.18 ▼2.87 | 701.55 ▲31.09 | 57.40 ▲6.12 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.59 ▲0.39 | 103.04 ▼8.71 | 42.17 ▼3.05 |
Detail Setting /wp-admin/admin.php?page=futura-setting | 1,237 | 2.15 | 34.22 | 33.66 |
Tag Suggestions /wp-admin/admin.php?page=futura-tag | 936 | 1.93 | 25.67 | 27.84 |
Design Setting /wp-admin/admin.php?page=futura-design | 994 | 1.87 | 26.15 | 24.67 |
Basic Setting /wp-admin/admin.php?page=futura | 1,207 | 1.92 | 26.71 | 28.58 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 19 options in the database
- futura_post_title_font_size
- widget_recent-comments
- widget_recent-posts
- futura_summary_font_size
- futura_html_border_color
- widget_futura_related
- widget_theysaidso_widget
- futura_display
- can_compress_scripts
- futura_number_of_posts
- ...
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=futura-tag
- > Warning in wp-content/plugins/futura/lib/futura-class.php+959
Illegal string offset 'list'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=futura-tag
- > Notice in wp-content/plugins/futura/lib/futura-class.php+960
Uninitialized string offset: 0
- > GET request to /wp-admin/admin.php?page=futura-tag
- > Warning in wp-content/plugins/futura/lib/futura-class.php+960
Illegal string offset 'total'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=futura-tag
- > Warning in wp-content/plugins/futura/lib/futura-class.php+975
Invalid argument supplied for foreach()
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
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_single() in wp-content/plugins/futura/assets/template/percentage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/futura/assets/template/design_setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/futura/assets/template/search_setting.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/futura/assets/template/index.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/futura/lib/futura-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/futura/assets/template/detail_setting.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/futura/assets/template/tag_setting.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/futura/lib/futura-widget.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=futura-design
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=futura-design 169 The specified value "#333" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: machine learning, related post
futura/futura.php Passed 13 tests
The main PHP script in "FUTURA" version 1.3.5 is automatically included on every request by WordPress
52 characters long description:
Show related post and keyword search by AI algorithm
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 plugin4,311 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 564 | 129 | 3,084 |
CSS | 3 | 33 | 11 | 663 |
PO File | 1 | 161 | 16 | 322 |
SVG | 7 | 0 | 0 | 125 |
JavaScript | 3 | 12 | 8 | 78 |
Markdown | 1 | 14 | 0 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 50.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 4 | 3.67% |
▷ Public methods | 109 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.54MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 99.60KB | 23.56KB | ▼ 76.34% |
screenshot-2.png | 165.75KB | 46.54KB | ▼ 71.92% |
assets/images/logo-color.png | 2.70KB | 1.37KB | ▼ 49.15% |
screenshot-3.png | 147.64KB | 41.03KB | ▼ 72.21% |
screenshot-1.png | 138.45KB | 34.30KB | ▼ 75.23% |