83% wp-audio-verse

Code Review | WP Audio Verse

WordPress plugin WP Audio Verse scored 83% from 54 tests.

About plugin

  • Plugin page: wp-audio-verse
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2015
  • Latest release: Mar 23, 2019
  • Number of updates: 17
  • Update frequency: every 72.4 days
  • Top authors: mamun3d (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.61ms] Passed 4 tests

Server-side resources used by WP Audio Verse
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.23 ▼4.74
Dashboard /wp-admin3.40 ▲0.0945.23 ▼5.29
Posts /wp-admin/edit.php3.51 ▲0.1545.58 ▼4.75
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.09 ▼11.65
Media Library /wp-admin/upload.php3.32 ▲0.0934.40 ▲0.08
Verses /wp-admin/edit.php?post_type=verse3.3634.57
Add New /wp-admin/post-new.php?post_type=verse3.4348.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Audio Verse
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.27 ▼1.0711.24 ▲9.3643.59 ▼1.33
Dashboard /wp-admin2,233 ▲455.86 ▲0.98107.10 ▼9.3039.52 ▼5.10
Posts /wp-admin/edit.php2,116 ▲272.00 ▲0.0141.80 ▲1.0036.17 ▼0.05
Add New Post /wp-admin/post-new.php1,556 ▲2323.20 ▼0.38689.83 ▲18.6354.42 ▲1.71
Media Library /wp-admin/upload.php1,415 ▲304.24 ▲0.0198.07 ▼3.9743.39 ▼0.01
Verses /wp-admin/edit.php?post_type=verse1,0891.9333.2827.80
Add New /wp-admin/post-new.php?post_type=verse2,3317.67169.2373.41

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-audio-verse/view/single-verse.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

wp-audio-verse/verse-with-audio.php 77% from 13 tests

The entry point to "WP Audio Verse" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-audio-verse.php" instead of "verse-with-audio.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 218 characters long)

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
Good job! No executable or dangerous file extensions detected1,704 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS23661201,297
PHP6144125355
JavaScript34428
SVG10024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.67
▷ Minimum class complexity4.00
▷ Maximum class complexity29.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png138.46KB47.38KB▼ 65.78%
screenshot-2.png98.12KB33.11KB▼ 66.26%