Benchmarks
Plugin footprint 65% 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.36MB] [CPU: ▼15.43ms] Passed 4 tests
This is a short check of server-side resources used by Clippings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 41.88 ▲4.72 |
Dashboard /wp-admin | 3.60 ▲0.26 | 50.44 ▼8.60 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 48.45 ▲1.76 |
Add New Post /wp-admin/post-new.php | 3.49 ▼2.40 | 36.68 ▼59.60 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 41.07 ▲7.78 |
Info /wp-admin/admin.php?page=mcsm_menu_info_page | 3.50 | 31.94 |
Options /wp-admin/admin.php?page=mcsm_options_page | 3.50 | 35.88 |
Press Releases /wp-admin/edit.php?post_type=mcsm_press_releases | 3.58 | 37.72 |
Submitted Material /wp-admin/edit.php?post_type=mcsm_sm | 3.58 | 35.89 |
Publications /wp-admin/edit.php?post_type=mcsm_publications | 3.58 | 35.73 |
Clients /wp-admin/edit.php?post_type=mcsm_clients | 3.58 | 36.75 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 141 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_entries |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Clippings
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲260 | 14.48 ▲0.06 | 11.42 ▲9.83 | 44.33 ▲2.71 |
Dashboard /wp-admin | 2,259 ▲74 | 5.91 ▲0.05 | 98.51 ▼4.34 | 39.74 ▼2.10 |
Posts /wp-admin/edit.php | 2,173 ▲81 | 2.49 ▲0.50 | 35.43 ▼9.08 | 34.23 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 22.14 ▼1.00 | 684.41 ▲37.15 | 55.56 ▲0.35 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.29 ▲0.10 | 111.00 ▲8.98 | 49.55 ▲5.53 |
Info /wp-admin/admin.php?page=mcsm_menu_info_page | 850 | 2.32 | 25.01 | 25.13 |
Options /wp-admin/admin.php?page=mcsm_options_page | 990 | 2.37 | 30.61 | 27.15 |
Press Releases /wp-admin/edit.php?post_type=mcsm_press_releases | 1,100 | 2.24 | 32.55 | 27.98 |
Submitted Material /wp-admin/edit.php?post_type=mcsm_sm | 1,105 | 2.36 | 33.28 | 28.50 |
Publications /wp-admin/edit.php?post_type=mcsm_publications | 1,108 | 2.24 | 32.20 | 27.33 |
Clients /wp-admin/edit.php?post_type=mcsm_clients | 1,089 | 2.23 | 34.50 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Please fix the following items
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/clippings/fpdf/tutorial/makefont.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/clippings/fpdf/tutorial/tuto1.php
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/publications.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/clippings/includes/shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/search-sma-route.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/clippings/includes/shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/report.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/submitted-material-fields.php:3
- > PHP Notice
iconv(): Detected an illegal character in input string in wp-content/plugins/clippings/fpdf/fpdf.php on line 626
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/options-page.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/submitted-material.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippings/includes/clients.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Options Page), #2 (Clients), #3 (Clients Tiers), #4 (Submitted Material), #5 (Add Clippings), #6 (Reports Form), #7 (Clippings Search), #8 (Submitted Material Search), #9 (Report)
clippings/clippings.php Passed 13 tests
The main file in "Clippings" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Organizes client's clippings and generates reports
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin9,004 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 632 | 334 | 5,079 |
HTML | 59 | 72 | 0 | 3,240 |
CSS | 2 | 95 | 5 | 438 |
JavaScript | 6 | 76 | 17 | 247 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 57.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 107 | 73.79% |
▷ Protected methods | 38 | 26.21% |
▷ Private methods | 0 | 0.00% |
Functions | 73 | |
▷ Named functions | 73 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |