Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.52ms] Passed 4 tests
Server-side resources used by LNC Near Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.46 ▼4.27 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.71 ▼13.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.41 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.43 ▼16.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.90 ▼4.19 |
Server storage [IO: ▲1.11MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LNC Near Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.35 ▼0.30 | 1.76 ▲0.02 | 43.30 ▼0.63 |
Dashboard /wp-admin | 2,198 ▲18 | 5.50 ▼0.16 | 89.06 ▼6.78 | 39.24 ▼7.26 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.05 | 39.44 ▲2.30 | 36.30 ▲2.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.73 ▲0.91 | 613.79 ▼65.10 | 55.66 ▼2.00 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.03 | 96.96 ▼13.99 | 41.28 ▼5.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/lnc-near-comments/index.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'LNCNearComments\\Model\\Abstractions\\AdminPages' not found in wp-content/plugins/lnc-near-comments/Model/Constructor/ConfigPage.php:13
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/lnc-near-comments/index.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lnc-near-comments/index.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/lnc-near-comments/index.php:23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Contributors: Contributors not specified
lnc-near-comments/index.php 92% from 13 tests
The primary PHP file in "LNC Near Comments" version 0.1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lnc-near-comments.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected8,926 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 7,634 |
PHP | 19 | 220 | 575 | 1,045 |
JavaScript | 8 | 24 | 40 | 247 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 23 | 28.40% |
▷ Public methods | 72 | 88.89% |
▷ Protected methods | 3 | 3.70% |
▷ Private methods | 6 | 7.41% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.52MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 16.96KB | 8.59KB | ▼ 49.36% |
assets/screenshot-3.png | 24.26KB | 11.26KB | ▼ 53.59% |
assets/screenshot-4.png | 56.06KB | 25.90KB | ▼ 53.80% |
assets/screenshot-1.png | 184.68KB | 80.51KB | ▼ 56.40% |
(invalid) assets/screenshot-8.png | 52.76KB | 0.00KB | ▼ 100.00% |