Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.67ms] Passed 4 tests
Analyzing server-side resources used by Text Modules
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.22 ▼5.68 |
Dashboard /wp-admin | 3.34 ▲0.04 | 42.56 ▼6.63 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.34 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.22 ▼5.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.76 ▼0.93 |
Add New /wp-admin/post-new.php?post_type=text_module | 3.38 | 47.32 |
All Text Modules /wp-admin/edit.php?post_type=text_module | 3.31 | 37.60 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_text-modules |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Text Modules
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.27 ▼1.11 | 1.79 ▼0.05 | 44.53 ▼1.55 |
Dashboard /wp-admin | 2,233 ▲45 | 5.81 ▼0.07 | 94.01 ▼24.34 | 38.29 ▼10.46 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.02 ▲0.01 | 34.35 ▼4.13 | 32.16 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 17.40 ▼0.07 | 641.25 ▼14.43 | 52.99 ▼4.49 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▼0.05 | 96.51 ▼2.46 | 41.31 ▼4.25 |
Add New /wp-admin/post-new.php?post_type=text_module | 2,183 | 7.72 | 176.73 | 64.23 |
All Text Modules /wp-admin/edit.php?post_type=text_module | 1,073 | 1.93 | 30.48 | 26.66 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_text-modules
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/text-modules/inc/Widget.php:8
- > PHP Fatal error
Uncaught Error: Interface 'tf\\Autoloader\\Rule' not found in wp-content/plugins/text-modules/inc/Autoloader/NamespaceRule.php:10
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3 in text-modules/assets to your readme.txt
text-modules/text-modules.php Passed 13 tests
"Text Modules" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Use the new Text Module custom post type and display a text module by either shortcode or widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin696 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 257 | 567 | 603 |
PO File | 1 | 28 | 60 | 87 |
CSS | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin