Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼16.52ms] Passed 4 tests
A check of server-side resources used by Content Writer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.09 ▼5.13 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.53 ▲3.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.89 ▲0.28 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 36.42 ▼61.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.53 ▼0.19 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Content Writer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.26 ▼1.47 | 4.46 ▲2.47 | 41.70 ▼6.31 |
Dashboard /wp-admin | 2,207 ▲16 | 5.89 ▼0.00 | 102.19 ▼9.80 | 81.83 ▲36.76 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.05 ▲0.01 | 38.84 ▲3.87 | 34.41 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 18.10 ▼4.96 | 680.53 ▲20.64 | 65.10 ▲2.23 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.20 ▼0.00 | 98.39 ▲3.91 | 46.39 ▲5.50 |
Uninstaller [IO: ▲0.00MB] [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 detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/content-writer/lib/PDL/functions/SpecialMath.php
- > /wp-content/plugins/content-writer/lib/PDL/GammaDistribution.php
- > /wp-content/plugins/content-writer/lib/PDL/BetaDistribution.php
- > /wp-content/plugins/content-writer/lib/conwr_writer_info.php
- > /wp-content/plugins/content-writer/lib/PDL/ProbabilityDistribution.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: sc_connected in wp-content/plugins/content-writer/lib/conwr-general-settings.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/content-writer/lib/conwr-general-settings.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-writer/lib/sc_api.php:1055
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/content-writer/lib/nusoap/class.soapclient.php:26
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/content-writer/lib/nusoap/class.soap_transport_http.php:15
- > PHP Fatal error
require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/content-writer/lib/nusoap/nusoapmime.php on line 42
- > PHP Notice
Undefined variable: sc_connected in wp-content/plugins/content-writer/lib/conwr-general-settings.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/content-writer/lib/nusoap/class.xmlschema.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/content-writer/lib/nusoap/class.soap_server.php:16
- > PHP Notice
Undefined variable: sc_connected in wp-content/plugins/content-writer/lib/conwr-general-settings.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Please add an image for screenshot #1 (Order content from SteadyContent and we'll deliver your content directly to your Wordpress blog.)
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
content-writer/content-writer.php Passed 13 tests
The main PHP script in "Content Writer" version 3.6.5 is automatically included on every request by WordPress
86 characters long description:
Allows users to order, post and socially share uniquely written content to their blog.
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
Everything looks great! No dangerous files found in this plugin20,167 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,999 | 5,877 | 16,222 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 7 | 147 | 78 | 703 |
CSS | 4 | 56 | 8 | 292 |
Sass | 1 | 28 | 5 | 279 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 73.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 8.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 351 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 351 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 139 | |
▷ Named functions | 139 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sc-logo20.png | 0.66KB | 0.74KB | 0.00% |
assets/images/beaker-gray.png | 6.94KB | 0.35KB | ▼ 95.00% |
assets/images/loser.png | 7.10KB | 0.33KB | ▼ 95.28% |
assets/images/beaker-green.png | 7.05KB | 0.44KB | ▼ 93.71% |
assets/images/beaker-blue.png | 7.08KB | 0.46KB | ▼ 93.43% |