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.02MB] [CPU: ▼7.84ms] Passed 4 tests
This is a short check of server-side resources used by Custom Footer - CODEPRESS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.99 ▼5.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.63 ▼4.82 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 48.33 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 77.74 ▼20.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 33.60 ▼0.37 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Footer - CODEPRESS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 14.07 ▼0.22 | 1.88 ▲0.33 | 36.08 ▼6.22 |
Dashboard /wp-admin | 2,216 ▲42 | 5.59 ▲0.07 | 80.96 ▼9.18 | 41.48 ▲1.96 |
Posts /wp-admin/edit.php | 2,177 ▲95 | 2.01 ▼0.02 | 42.59 ▲6.41 | 35.46 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.98 ▼0.61 | 677.91 ▲2.66 | 52.27 ▼0.39 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.08 ▼0.18 | 104.57 ▲4.22 | 46.55 ▲0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- 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 no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-footer-codepress/custom-footer-codepress.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: rodap, custom footer, footer, personalize footer, alterar rodap
custom-footer-codepress/custom-footer-codepress.php 77% from 13 tests
The principal PHP file in "Custom Footer - CODEPRESS" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin104 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 21 | 30 | 81 |
CSS | 1 | 4 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 2.99MB with 1.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 570.61KB | 187.92KB | ▼ 67.07% |
assets/logo-256x256.png | 138.75KB | 50.09KB | ▼ 63.90% |
screenshot-2.png | 4.45KB | 1.60KB | ▼ 64.08% |
assets/screenshot-1.png | 21.27KB | 9.21KB | ▼ 56.68% |
assets/screenshot-2.png | 4.45KB | 1.60KB | ▼ 64.08% |