Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.44ms] Passed 4 tests
A check of server-side resources used by NMT Sitewide moderation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 37.50 ▼3.57 |
Dashboard /wp-admin | 3.52 ▲0.22 | 46.62 ▼7.06 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 45.74 ▼1.56 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 98.11 ▲4.26 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.53 ▼1.55 |
All Comments /wp-admin/edit-comments.php | 3.51 | 38.82 |
Sitewide blacklist /wp-admin/edit-comments.php?page=nmt-sitewide-blacklist | 3.46 | 36.80 |
Sitewide moderation /wp-admin/edit-comments.php?page=nmt-sitewide-moderation | 3.44 | 30.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_all_comments |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
NMT Sitewide moderation: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.33 ▼1.05 | 1.70 ▼0.18 | 43.67 ▼7.57 |
Dashboard /wp-admin | 2,227 ▲36 | 4.83 ▼0.99 | 109.18 ▼2.71 | 40.71 ▲0.46 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.05 ▲0.04 | 34.04 ▼2.49 | 36.35 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 18.16 ▲0.55 | 611.54 ▼110.05 | 48.62 ▼8.33 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.23 ▲0.02 | 99.45 ▼4.99 | 42.18 ▼5.01 |
All Comments /wp-admin/edit-comments.php | 1,813 | 2.30 | 39.49 | 34.85 |
Sitewide blacklist /wp-admin/edit-comments.php?page=nmt-sitewide-blacklist | 808 | 2.02 | 27.43 | 26.97 |
Sitewide moderation /wp-admin/edit-comments.php?page=nmt-sitewide-moderation | 1,374 | 2.05 | 34.78 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_all_comments
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit-comments.php?page=nmt-sitewide-moderation
- > Notice in wp-content/plugins/nmt-sitewide-moderation/nmt-sitewide-moderation.php+71
Undefined index: comment_status
- > GET request to /wp-admin/edit-comments.php?page=nmt-sitewide-moderation
- > Notice in wp-content/plugins/nmt-sitewide-moderation/nmt-sitewide-moderation.php+191
Undefined variable: post_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=nmt-sitewide-moderation
- > Notice in wp-admin/includes/class-wp-list-table.php+1350
Undefined offset: 3
- > GET request to /wp-admin/edit-comments.php?page=nmt-sitewide-moderation
- > Warning in wp-admin/includes/class-wp-list-table.php+1676
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nmt-sitewide-moderation/nmt-sitewide-moderation.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/nmt-sitewide-moderation/nmt-sitewide-moderation.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/nmt-sitewide-moderation/nmt_comment_list_table.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/nmt-sitewide-moderation/nmt-sitewide-moderation.php on line 23
- > PHP Warning
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 is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
nmt-sitewide-moderation/nmt-sitewide-moderation.php Passed 13 tests
This is the main PHP file of "NMT Sitewide moderation" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Enables site-wide comment moderation over multiple blogs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,933 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 228 | 124 | 1,091 |
JavaScript | 2 | 236 | 17 | 842 |
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.40 |
Average class complexity | 61.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 6.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin