Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼11.65ms] Passed 4 tests
Analyzing server-side resources used by PaidContent
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.76 ▼3.77 |
Dashboard /wp-admin | 3.47 ▲0.12 | 49.28 ▼18.72 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.23 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 84.53 ▼18.02 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.95 ▼6.09 |
Authors /wp-admin/edit-tags.php?taxonomy=author&post_type=paidcontent | 3.37 | 35.85 |
Add New /wp-admin/post-new.php?post_type=paidcontent | 3.57 | 51.45 |
PaidContent /wp-admin/options-general.php?page=paidContent-settings | 3.34 | 35.45 |
All Items /wp-admin/edit.php?post_type=paidcontent | 3.40 | 36.62 |
Paid package /wp-admin/edit-tags.php?taxonomy=package&post_type=paidcontent | 3.37 | 33.40 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PaidContent: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.28 ▲0.15 | 1.74 ▼0.28 | 42.10 ▼2.10 |
Dashboard /wp-admin | 2,236 ▲59 | 5.61 ▲0.05 | 89.65 ▼19.09 | 39.79 ▼2.37 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.11 ▲0.17 | 39.04 ▼0.46 | 35.01 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 18.23 ▼4.83 | 609.52 ▼7.43 | 69.86 ▲6.09 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.16 ▼0.07 | 99.64 ▼6.91 | 46.65 ▲3.24 |
Authors /wp-admin/edit-tags.php?taxonomy=author&post_type=paidcontent | 1,287 | 2.12 | 27.31 | 30.72 |
Add New /wp-admin/post-new.php?post_type=paidcontent | 2,367 | 7.66 | 178.97 | 68.88 |
PaidContent /wp-admin/options-general.php?page=paidContent-settings | 846 | 2.00 | 23.16 | 29.57 |
All Items /wp-admin/edit.php?post_type=paidcontent | 1,130 | 1.96 | 29.73 | 26.74 |
Paid package /wp-admin/edit-tags.php?taxonomy=package&post_type=paidcontent | 1,315 | 2.12 | 27.12 | 29.11 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paidcontent/templates/access-deny-page.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
paidcontent/paidcontent.php 92% from 13 tests
The main PHP script in "PaidContent" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 297 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected485 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 122 | 61 | 396 |
PO File | 1 | 32 | 32 | 89 |
CSS | 1 | 0 | 1 | 0 |
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.20 |
Average class complexity | 3.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 2 | 7.14% |
▷ Private methods | 4 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin