84% audiograph

Code Review | Audiograph

WordPress plugin Audiograph scored 84% from 54 tests.

About plugin

  • Plugin page: audiograph
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: Oct 15, 2021
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: qstear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.25ms] Passed 4 tests

An overview of server-side resources used by Audiograph
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.25 ▼0.85
Dashboard /wp-admin3.31 ▲0.0144.56 ▼2.68
Posts /wp-admin/edit.php3.36 ▲0.0144.51 ▲3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.00 ▼15.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.30 ▲2.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Audiograph
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.28 ▼1.104.02 ▲2.2039.21 ▼5.59
Dashboard /wp-admin2,206 ▲184.86 ▼0.2295.08 ▼20.9438.56 ▼6.75
Posts /wp-admin/edit.php2,089 ▼02.17 ▲0.1334.08 ▼7.5732.01 ▼2.56
Add New Post /wp-admin/post-new.php1,533 ▼923.11 ▲4.65670.77 ▲53.0352.90 ▲4.50
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0695.30 ▼9.7442.24 ▼1.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audiograph/audiograph.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audiograph/trunk/audiograph.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: podcast player, podcasts, podcast clips

audiograph/audiograph.php Passed 13 tests

The principal PHP file in "Audiograph" v. 1.0 is loaded by WordPress automatically on each request
55 characters long description:
Embed your Audiograph links with the Audiograph Plugin!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
YAML14036
PHP1388

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin