Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.29ms] Passed 4 tests
Analyzing server-side resources used by ravpage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 42.15 ▲0.95 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.26 ▲0.90 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 48.18 ▼2.29 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.54 ▼16.72 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.14 ▲2.78 |
Ravpage /wp-admin/options-general.php?page=ravpage | 3.71 | 36.70 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 431 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by ravpage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.80 ▲0.42 | 2.02 ▲0.06 | 38.79 ▼2.60 |
Dashboard /wp-admin | 2,219 ▲31 | 5.90 ▲1.02 | 103.34 ▼2.79 | 46.73 ▲9.07 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.02 ▲0.00 | 35.79 ▼1.44 | 39.30 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,384 ▼155 | 17.54 ▼5.68 | 565.36 ▼122.32 | 53.90 ▼4.85 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.17 ▲0.01 | 94.67 ▼7.37 | 42.98 ▼2.07 |
Ravpage /wp-admin/options-general.php?page=ravpage | 788 | 2.01 | 25.36 | 33.32 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/old-extract-schema.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/add-vimline.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/old-remove-schema-def.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/remove-trailing-whitespace.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/old-remove-require-once.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/flush-definition-cache.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/generate-standalone.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/rename-config.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/config-scanner.php
- > /wp-content/plugins/ravpage/htmlpurifier/maintenance/generate-schema-cache.php
- 176× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ident.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/URIScheme/http.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php:8
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/AttrTransform/NameSync.php:8
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Composite.php:12
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule_Tidy' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Strategy' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/AttrTransform/Nofollow.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_ChildDef_Required' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php:10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/ravpage/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ravpage ===
)
ravpage/ravpage.php Passed 13 tests
The main PHP script in "ravpage" version 2.31 is automatically included on every request by WordPress
50 characters long description:
plugin to easy page publishing for ravpage clients
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected21,241 lines of code in 284 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 275 | 4,218 | 12,122 | 21,127 |
diff | 1 | 13 | 43 | 46 |
Bourne Shell | 3 | 0 | 0 | 24 |
Markdown | 1 | 9 | 0 | 20 |
INI | 2 | 22 | 68 | 15 |
CSS | 1 | 3 | 1 | 6 |
JavaScript | 1 | 1 | 1 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 243 | |
▷ Abstract classes | 15 | 6.17% |
▷ Concrete classes | 228 | 93.83% |
▷ Final classes | 0 | 0.00% |
Methods | 852 | |
▷ Static methods | 49 | 5.75% |
▷ Public methods | 622 | 73.00% |
▷ Protected methods | 85 | 9.98% |
▷ Private methods | 145 | 17.02% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 6 | 6.19% |
▷ Class constants | 91 | 93.81% |
▷ Public constants | 91 | 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
PNG images were not found in this plugin