Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.74MB] [CPU: ▼24.45ms] Passed 4 tests
This is a short check of server-side resources used by HeadlineEngine
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.25 ▼2.85 |
Dashboard /wp-admin | 3.11 ▼0.19 | 28.67 ▼25.09 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 35.08 ▼11.01 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.65 | 40.62 ▼56.46 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 29.06 ▼5.24 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
HeadlineEngine: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲93 | 13.29 ▼1.19 | 1.78 ▼0.23 | 48.54 ▲4.75 |
Dashboard /wp-admin | 2,256 ▲68 | 4.89 ▼1.00 | 109.61 ▼7.61 | 36.66 ▼9.67 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.01 ▼0.13 | 40.50 ▲6.28 | 35.11 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.23 ▲5.65 | 665.08 ▼30.28 | 56.48 ▼0.32 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.24 ▲0.04 | 95.10 ▼7.44 | 40.96 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 | 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/headlineengine/includes/admin/views/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
headlineengine/headlineengine.php 92% from 13 tests
Analyzing the main PHP file in "HeadlineEngine" version 0.2.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,928 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 254 | 440 | 3,541 |
PHP | 6 | 22 | 16 | 268 |
CSS | 2 | 10 | 1 | 95 |
Markdown | 1 | 9 | 0 | 10 |
SVG | 1 | 0 | 0 | 9 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ 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
There were not PNG files found in your plugin