10% cpcast-canalpiloto

Code Review | CP Cast o Podcast do Canal Piloto

WordPress plugin CP Cast o Podcast do Canal Piloto scored10%from 54 tests.

About plugin

  • Plugin page: cpcast-canalpiloto
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2013
  • Latest release: Nov 24, 2013
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: joelgarciajr84 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /797 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.92 ▼41.48
Dashboard /wp-admin2.05 ▼1.305.77 ▼50.85
Posts /wp-admin/edit.php2.05 ▼1.316.12 ▼41.28
Add New Post /wp-admin/post-new.php2.05 ▼3.845.52 ▼85.33
Media Library /wp-admin/upload.php2.05 ▼1.185.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▼0.311.76 ▼0.3542.79 ▼4.02
Dashboard /wp-admin2,195 ▲245.62 ▲0.0983.97 ▼3.8240.67 ▼0.76
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0135.96 ▼0.5831.70 ▼4.15
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▼0.44635.52 ▼47.3752.88 ▼0.21
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0494.93 ▼2.7240.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

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.)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP3151166
Markdown1102

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 code0.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-3.png25.19KB7.14KB▼ 71.66%
screenshot-1.png26.48KB6.33KB▼ 76.10%
screenshot-2.png117.01KB36.71KB▼ 68.63%