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.01MB] [CPU: ▼7.97ms] Passed 4 tests
This is a short check of server-side resources used by MiniPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 29.92 ▼11.50 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.46 ▼20.33 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.49 ▲5.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.59 ▼1.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.29 ▲1.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
minipress_ac315b69134ea8c517f10299e22ec356 |
minipress_f9dd8e64dd3f8c90af31e45f06e76397 |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
minipress_c35b921c9dd5a399ea10a336baf58311 |
Browser metrics Passed 4 tests
MiniPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲25 | 13.60 ▼0.99 | 2.16 ▲0.11 | 40.55 ▼3.25 |
Dashboard /wp-admin | 2,203 ▲18 | 4.88 ▼0.99 | 97.06 ▼10.53 | 40.49 ▼2.29 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 40.41 ▲3.10 | 36.11 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 18.20 ▲0.62 | 607.95 ▼77.66 | 58.93 ▲1.08 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.00 | 102.10 ▼6.94 | 44.21 ▼2.04 |
Uninstaller [IO: ▲0.31MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- minipress_f9dd8e64dd3f8c90af31e45f06e76397
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- minipress_c35b921c9dd5a399ea10a336baf58311
- minipress_ac315b69134ea8c517f10299e22ec356
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 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/minipress/minipress.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: javascript, concatenate, minify
minipress/minipress.php Passed 13 tests
The main file in "MiniPress" v. 0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
Automatically concatenates and minifies all enqueued scripts upon pageload.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected657 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 120 | 350 | 596 |
Markdown | 1 | 51 | 0 | 61 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 5.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 10 | 40.00% |
▷ Public methods | 6 | 24.00% |
▷ Protected methods | 12 | 48.00% |
▷ Private methods | 7 | 28.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin