10% cocatech-podcast

Code Review | Cocatech Podcast

WordPress plugin Cocatech Podcast scored 10% from 54 tests.

About plugin

  • Plugin page: cocatech-podcast
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 5.8.1
  • First release: Nov 4, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: joelgarciajr84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 551 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/cocatech-podcast/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; CocatechPodcast has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼187.44ms] Passed 4 tests

An overview of server-side resources used by Cocatech Podcast
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.78 ▼1.065.32 ▼28.46
Dashboard /wp-admin1.80 ▼1.265.57 ▼38.53
Posts /wp-admin/edit.php1.80 ▼1.315.70 ▼36.98
Add New Post /wp-admin/post-new.php1.80 ▼3.644.80 ▼645.77
Media Library /wp-admin/upload.php1.80 ▼1.205.80 ▼24.56

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
widget_cocatechpodcast

Browser metrics Passed 4 tests

Cocatech Podcast: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.93 ▲0.048.09 ▼0.0250.54 ▲5.60
Dashboard /wp-admin2,973 ▲425.89 ▼0.09139.05 ▼8.20115.56 ▲9.58
Posts /wp-admin/edit.php2,739 ▲32.69 ▲0.0164.68 ▼0.7592.21 ▲1.33
Add New Post /wp-admin/post-new.php1,594 ▲9618.78 ▼0.00363.14 ▼19.49104.93 ▼12.13
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.04153.77 ▲4.65124.83 ▲1.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/cocatech-podcast/widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; CocatechPodcast has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_cocatechpodcast

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 | 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
  • 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/cocatech-podcast/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cocatech-podcast/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (2.), #3 ()
The official readme.txt might help

cocatech-podcast/cocatech-podcast.php Passed 13 tests

The main file in "Cocatech Podcast" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Cria um Widget para exibição dos 5 ultimos episódios

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress 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 overview of cyclomatic complexity and code structure
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
print.png17.46KB8.04KB▼ 53.97%
screenshot-3.png38.66KB10.00KB▼ 74.14%
screenshot-1.png12.21KB2.80KB▼ 77.06%
screenshot-2.png22.99KB6.33KB▼ 72.45%