Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cpcast-canalpiloto/widget.php+73
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼54.74ms] Passed 4 tests
A check of server-side resources used by CP Cast o Podcast do Canal Piloto
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.92 ▼41.48 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.77 ▼50.85 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.12 ▼41.28 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼85.33 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.10 ▼25.91 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_canalpiloto |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for CP Cast o Podcast do Canal Piloto
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▼0.31 | 1.76 ▼0.35 | 42.79 ▼4.02 |
Dashboard /wp-admin | 2,195 ▲24 | 5.62 ▲0.09 | 83.97 ▼3.82 | 40.67 ▼0.76 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.01 | 35.96 ▼0.58 | 31.70 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.44 | 635.52 ▼47.37 | 52.88 ▼0.21 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▲0.04 | 94.93 ▼2.72 | 40.12 ▼4.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/cpcast-canalpiloto/widget.php+73
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_canalpiloto
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpcast-canalpiloto/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpcast-canalpiloto/widget.php:2
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (2.)
cpcast-canalpiloto/cpcast-canalpiloto.php Passed 13 tests
The entry point to "CP Cast o Podcast do Canal Piloto" version 1.0 is a PHP file that has certain tags in its header comment area
120 characters long description:
Ao ativar esse plugin ele criará um Widget pra exibir os cinco ultímos episódios do CPCAST o Podcast do Canal Piloto.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin68 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 15 | 11 | 66 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 25.19KB | 7.14KB | ▼ 71.66% |
screenshot-1.png | 26.48KB | 6.33KB | ▼ 76.10% |
screenshot-2.png | 117.01KB | 36.71KB | ▼ 68.63% |