Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.11ms] Passed 4 tests
Server-side resources used by Simple Custom Content Adder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.14 ▼2.76 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.50 ▼13.76 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.12 ▼4.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.18 ▼6.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.34 ▲1.02 |
Custom Content /wp-admin/plugins.php?page=simple-custom-content-adder | 3.31 | 37.85 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 16 new options
New WordPress options |
---|
scca_rounded_corners |
scca_font_color |
theysaidso_admin_options |
scca_font_size |
scca_border_width |
scca_posts_or_pages |
scca_background_color |
scca_before_or_after |
scca_border_color |
scca_content |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Custom Content Adder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.43 ▲0.36 | 1.86 ▲0.23 | 43.67 ▲2.51 |
Dashboard /wp-admin | 2,215 ▲46 | 5.69 ▲0.04 | 85.77 ▼12.71 | 37.96 ▼7.46 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.27 ▲0.32 | 34.44 ▼5.87 | 30.69 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.28 ▲0.09 | 699.85 ▲16.02 | 38.41 ▼14.39 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.40 ▲0.20 | 107.03 ▲7.78 | 47.25 ▲2.75 |
Custom Content /wp-admin/plugins.php?page=simple-custom-content-adder | 1,973 | 7.23 | 172.35 | 100.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 16 options in the database
- scca_before_or_after
- can_compress_scripts
- scca_padding
- scca_font_color
- scca_background_color
- widget_theysaidso_widget
- scca_rounded_corners
- scca_font_size
- scca_content
- theysaidso_admin_options
- ...
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-custom-content-adder/simple-custom-content-adder.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: simple custom content, disclaimer, custom content, promotions, content adder
simple-custom-content-adder/simple-custom-content-adder.php Passed 13 tests
The principal PHP file in "Simple Custom Content Adder" v. 1.1 is loaded by WordPress automatically on each request
94 characters long description:
A simple plugin that enables you to add some custom content to all of your posts and/or pages.
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
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 67 | 71 | 216 |
JavaScript | 1 | 4 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/scca.png | 4.32KB | 1.07KB | ▼ 75.25% |
screenshot-1.png | 103.25KB | 37.33KB | ▼ 63.84% |