Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▼3.74ms] Passed 4 tests
An overview of server-side resources used by ResultPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.54 | 48.94 ▲2.87 |
Dashboard /wp-admin | 4.23 ▲0.60 | 59.10 ▼11.68 |
Posts /wp-admin/edit.php | 4.25 ▲0.57 | 59.42 ▲2.73 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.68 | 103.40 ▼8.89 |
Media Library /wp-admin/upload.php | 4.15 ▲0.66 | 41.79 ▲4.55 |
Add New /wp-admin/post-new.php?post_type=rrf-result | 4.59 | 60.33 |
ResultPress Settings /wp-admin/edit.php?post_type=rrf-result&page=resultpress-settings | 4.12 | 39.24 |
Results /wp-admin/edit.php?post_type=rrf-result | 4.20 | 43.12 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for ResultPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.48 ▲0.13 | 2.24 ▲0.45 | 43.60 ▲1.52 |
Dashboard /wp-admin | 2,240 ▲60 | 5.71 ▲0.06 | 91.47 ▲2.10 | 44.07 ▼0.67 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.07 ▲0.06 | 43.41 ▲6.53 | 36.13 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,559 ▲28 | 23.46 ▲0.23 | 690.66 ▼17.14 | 69.72 ▲17.36 |
Media Library /wp-admin/upload.php | 1,442 ▲48 | 4.24 ▼0.02 | 104.24 ▼6.00 | 42.15 ▼2.83 |
Add New /wp-admin/post-new.php?post_type=rrf-result | 2,045 | 2.74 | 70.97 | 71.71 |
ResultPress Settings /wp-admin/edit.php?post_type=rrf-result&page=resultpress-settings | 1,776 | 2.63 | 42.68 | 40.19 |
Results /wp-admin/edit.php?post_type=rrf-result | 1,122 | 1.99 | 33.39 | 31.25 |
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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/resultpress/libs/recaptcha/human-verify.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resultpress/admin/resultpress-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resultpress/admin/resultpress-metabox.php:6
- > PHP Notice
Undefined variable: private in wp-content/plugins/resultpress/libs/recaptcha/human-verify.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resultpress/admin/resultpress-cpt.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/resultpress/templates/marksheet-theme-1.php:1
- > PHP Warning
Use of undefined constant success - assumed 'success' (this will throw an Error in a future version of PHP) in wp-content/plugins/resultpress/libs/recaptcha/human-verify.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resultpress/resultpress.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resultpress/libs/cmb2/init.php:77
- > PHP Notice
Undefined variable: captcha in wp-content/plugins/resultpress/libs/recaptcha/human-verify.php on line 17
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== resultpress ===
)
resultpress/resultpress.php Passed 13 tests
The main PHP script in "ResultPress" version 1.1 is automatically included on every request by WordPress
57 characters long description:
This plugin student result system in your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin15,698 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 2,064 | 2,072 | 9,036 |
PHP | 20 | 1,162 | 2,176 | 4,181 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 7 | 202 | 194 | 805 |
PO File | 2 | 243 | 274 | 548 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 43.57 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 23 | 10.09% |
▷ Public methods | 215 | 94.30% |
▷ Protected methods | 9 | 3.95% |
▷ Private methods | 4 | 1.75% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
libs/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
libs/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
libs/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
libs/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |