Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼1.44ms] 75% from 4 tests
A check of server-side resources used by codoc
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 988.55ms on /wp-admin/options-general.php?page=codoc)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.28 ▲6.40 |
Dashboard /wp-admin | 3.60 ▲0.25 | 51.21 ▼6.51 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 46.09 ▼1.56 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 96.11 ▲1.03 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.75 ▲1.29 |
codoc /wp-admin/options-general.php?page=codoc | 3.50 | 988.55 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
codoc_settings |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
codoc: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.35 ▼0.01 | 2.21 ▲0.61 | 46.62 ▲3.16 |
Dashboard /wp-admin | 2,204 ▲23 | 5.60 ▼0.12 | 82.08 ▼13.18 | 38.17 ▼7.13 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 34.49 ▼0.03 | 31.88 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.43 ▼4.73 | 658.63 ▼20.62 | 64.62 ▲9.10 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.18 ▼0.01 | 94.79 ▼3.02 | 40.86 ▼2.83 |
codoc /wp-admin/options-general.php?page=codoc | 798 | 2.00 | 22.99 | 31.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- codoc_settings
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 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 text when accessed directly:
- > /wp-content/plugins/codoc/views/codoc-injector.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/codoc/views/codoc-shortcodes-list.php on line 1
- > PHP Notice
Undefined variable: atts in wp-content/plugins/codoc/views/codoc-injector.php on line 1
- > PHP Notice
Undefined variable: atts in wp-content/plugins/codoc/views/codoc-injector.php on line 1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/class-http.php' (include_path='.:/usr/share/php') in wp-content/plugins/codoc/class-codoc-util.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/codoc/views/codoc-injector.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/codoc/class-codoc.php:2
- > PHP Warning
require_once(ABSPATHwp-includes/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/codoc/class-codoc-util.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/codoc/class-codoc-util.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/codoc/views/codoc-shortcodes-list.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/codoc/views/codoc-shortcodes-list.php:9
- > PHP Notice
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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in codoc/assets to your readme.txt
codoc/codoc.php Passed 13 tests
The main file in "codoc" v. 0.9.51.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
110 characters long description:
A WordPress plugin for monetizing websites by enabling paid articles, subscriptions(memberships), and tipping.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,455 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 115 | 175 | 1,440 |
JavaScript | 6 | 64 | 41 | 473 |
PO File | 1 | 114 | 133 | 283 |
CSS | 4 | 37 | 2 | 150 |
Sass | 3 | 6 | 4 | 90 |
JSON | 2 | 0 | 0 | 18 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 114.00 |
▷ Minimum class complexity | 102.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 1 | 2.94% |
▷ Anonymous functions | 33 | 97.06% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src_mce/more.png | 4.00KB | 1.37KB | ▼ 65.86% |