Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▲1.04ms] Passed 4 tests
A check of server-side resources used by Interactive Longform Articles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 41.65 ▲5.21 |
Dashboard /wp-admin | 4.04 ▲0.69 | 51.40 ▼9.60 |
Posts /wp-admin/edit.php | 4.13 ▲0.76 | 53.25 ▲10.33 |
Add New Post /wp-admin/post-new.php | 7.15 ▲1.26 | 94.28 ▼1.77 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 44.09 ▲15.41 |
Interactive Longform Articles /wp-admin/options-general.php?page=interactive | 3.93 | 33.95 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 402 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Interactive Longform Articles: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲54 | 14.73 ▲0.17 | 1.83 ▲0.28 | 41.60 ▲2.35 |
Dashboard /wp-admin | 2,204 ▲24 | 5.69 ▲0.02 | 92.46 ▼8.32 | 38.75 ▼4.40 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.02 ▲0.05 | 41.21 ▲7.26 | 37.31 ▲4.22 |
Add New Post /wp-admin/post-new.php | 7,240 ▲5,712 | 24.16 ▲0.94 | 953.04 ▲280.14 | 36.36 ▼19.04 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.28 ▲0.08 | 99.05 ▼7.32 | 43.53 ▼1.36 |
Interactive Longform Articles /wp-admin/options-general.php?page=interactive | 849 | 2.09 | 23.42 | 26.10 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/interactive-longform-articles/templates/header.php:9
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/interactive-longform-articles/templates/footer.php:7
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/interactive-longform-articles/lib/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in interactive-longform-articles/assets to your readme.txt
interactive-longform-articles/interactive-longform-articles.php Passed 13 tests
The main PHP file in "Interactive Longform Articles" ver. 2.1.6 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Interactive multimedia articles for longform journalism
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin56,957 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 62 | 2,285 | 6,181 | 7,755 |
JSON | 3 | 0 | 0 | 6,469 |
CSS | 20 | 1,242 | 1,278 | 5,729 |
Sass | 22 | 470 | 30 | 2,265 |
JavaScript | 12 | 415 | 492 | 1,643 |
Markdown | 3 | 241 | 0 | 643 |
HTML | 1 | 6 | 2 | 97 |
SVG | 2 | 0 | 0 | 33 |
PHP code Passed 2 tests
This is a very shot review of 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.45 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 8 | 11.59% |
▷ Concrete classes | 61 | 88.41% |
▷ Final classes | 0 | 0.00% |
Methods | 561 | |
▷ Static methods | 89 | 15.86% |
▷ Public methods | 468 | 83.42% |
▷ Protected methods | 89 | 15.86% |
▷ Private methods | 4 | 0.71% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
lib/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |