Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼8.46ms] Passed 4 tests
Analyzing server-side resources used by Writing.Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 36.04 ▼1.04 |
Dashboard /wp-admin | 3.57 ▲0.22 | 47.25 ▼18.08 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.97 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 82.71 ▼14.01 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.22 ▲3.11 |
Order Blog Post /wp-admin/admin.php?page=clwp&action=new_blog_posting | 3.37 | 35.86 |
Settings /wp-admin/admin.php?page=clwp&action=settings | 3.41 | 31.39 |
Order PPC Ad /wp-admin/admin.php?page=clwp&action=new_pcc_ads_writing | 3.37 | 33.62 |
Dashboard /wp-admin/admin.php?page=clwp | 3.37 | 29.29 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 330 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Writing.Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.52 ▼0.90 | 1.63 ▼0.07 | 39.95 ▼0.37 |
Dashboard /wp-admin | 2,236 ▲45 | 5.09 ▼0.77 | 112.53 ▲1.23 | 75.43 ▲28.90 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.29 ▲0.28 | 40.12 ▼2.23 | 36.16 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,703 ▲189 | 22.61 ▲4.92 | 712.64 ▲42.45 | 31.20 ▼26.26 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.56 ▲0.33 | 106.21 ▲0.28 | 44.39 ▼1.12 |
Order Blog Post /wp-admin/admin.php?page=clwp&action=new_blog_posting | 1,587 | 2.75 | 30.70 | 44.33 |
Settings /wp-admin/admin.php?page=clwp&action=settings | 916 | 1.87 | 27.35 | 34.33 |
Order PPC Ad /wp-admin/admin.php?page=clwp&action=new_pcc_ads_writing | 1,587 | 2.74 | 31.82 | 40.87 |
Dashboard /wp-admin/admin.php?page=clwp | 1,587 | 2.74 | 32.34 | 40.58 |
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
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clwp
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
- > GET request to /wp-admin/admin.php?page=clwp
- > Notice in wp-content/plugins/writers-pro/includes/admin/writers-pro-admin-pages-trait.php+17
Undefined index: action
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/writers-pro/admin/partials/view_article.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: order in wp-content/plugins/writers-pro/admin/partials/view_article.php on line 110
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/writers-pro/includes/admin/class-writers-pro-article-list.php on line 4
- > PHP Fatal error
Trait 'Contentlocalized\\CLWP_WritersPro_Admin_Pages_Trait' not found in wp-content/plugins/writers-pro/admin/class-writers-pro-admin.php on line 15
- > PHP Notice
Undefined variable: order in wp-content/plugins/writers-pro/admin/partials/view_article.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/writers-pro/admin/partials/dashboard.php:3
- > PHP Warning
require(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/writers-pro/includes/admin/class-writers-pro-article-list.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Contentlocalized\\WritersPro\\ContentlocalizedAPI' not found in wp-content/plugins/writers-pro/admin/partials/balance.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/writers-pro/admin/partials/view_article.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/writers-pro/admin/partials/settings.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/writers-pro/includes/admin/class-writers-pro-article-list.php on line 4
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: "https:/contentlocalized.com"
- Screenshots: These screenshots do not have images: #1 (Activation of Writing.Pro Plugin), #2 (Dashboard where you can see your orders), #3 (Create new order with just a couple of clicks), #4 (View your completed orders)
writers-pro/writers-pro.php 92% from 13 tests
The main PHP file in "Writing.Pro" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,465 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 263 | 539 | 1,124 |
CSS | 2 | 193 | 9 | 1,043 |
JavaScript | 2 | 75 | 5 | 298 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 14 | 25.45% |
▷ Public methods | 47 | 85.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 14.55% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
304 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/flags_iso/16/sh.png | 3.92KB | 0.58KB | ▼ 85.16% |
admin/img/flags_iso/16/bm.png | 0.59KB | 0.55KB | ▼ 7.10% |
admin/img/flags_iso/16/np.png | 0.62KB | 0.52KB | ▼ 15.93% |
admin/img/flags_iso/16/ci.png | 0.42KB | 0.46KB | 0.00% |
admin/img/flags_iso/16/sw.png | 0.62KB | 0.59KB | ▼ 4.60% |