84% powerpress-getid3

Code Review | PowerPress GetID3 1.9.3 add-on

WordPress plugin PowerPress GetID3 1.9.3 add-on scored84%from 54 tests.

About plugin

  • Plugin page: powerpress-getid3
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: Mar 15, 2020
  • Number of updates: 7
  • Update frequency: every 202.6 days
  • Top authors: amandato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.45ms] Passed 4 tests

Analyzing server-side resources used by PowerPress GetID3 1.9.3 add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.91 ▲0.46
Dashboard /wp-admin3.31 ▲0.0049.66 ▲4.24
Posts /wp-admin/edit.php3.36 ▲0.0046.74 ▼9.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.83 ▼34.31
Media Library /wp-admin/upload.php3.23 ▲0.0036.13 ▲1.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PowerPress GetID3 1.9.3 add-on
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.301.73 ▼0.0343.59 ▼0.22
Dashboard /wp-admin2,195 ▲185.61 ▼0.0493.11 ▲8.6541.38 ▲0.77
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0534.28 ▼7.0135.93 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼223.60 ▲0.73702.90 ▲56.8060.08 ▲17.47
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.02108.40 ▲12.4448.53 ▲6.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.tag.id3v2.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.audio.mp3.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/powerpress-getid3/powerpress-getid3.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.tag.id3v1.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.tag.apetag.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.audio.aac.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.tag.lyrics3.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.audio-video.riff.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/powerpress-getid3/getid3-1.9.3/module.audio-video.quicktime.php:16
    • > PHP Fatal error
      'break' not in the 'loop' or 'switch' context in wp-content/plugins/powerpress-getid3/getid3-1.9.3/getid3.lib.php on line 285

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: powerpress, getid3

powerpress-getid3/powerpress-getid3.php Passed 13 tests

"PowerPress GetID3 1.9.3 add-on" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Replaces the GetID3 library used in PowerPress with an older version 1.9.3.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,482 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP121,7643,2969,482

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 296)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity185.83
▷ Minimum class complexity1.00
▷ Maximum class complexity421.00
Average method complexity12.37
▷ Minimum method complexity1.00
▷ Maximum method complexity296.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods196
▷ Static methods11257.14%
▷ Public methods19398.47%
▷ Protected methods31.53%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin