84% audio-story-images

Code Review | Audio Story Images

WordPress plugin Audio Story Images scored84%from 54 tests.

About plugin

  • Plugin page: audio-story-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Dec 5, 2018
  • Number of updates: 10
  • Update frequency: every 85.2 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

500+ active /10,065 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.03MB] [CPU: ▼7.00ms] Passed 4 tests

This is a short check of server-side resources used by Audio Story Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.95 ▲2.80
Dashboard /wp-admin3.34 ▲0.0047.48 ▼11.29
Posts /wp-admin/edit.php3.40 ▲0.0444.92 ▼4.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.81 ▼11.25
Media Library /wp-admin/upload.php3.27 ▲0.0432.07 ▼0.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Audio Story Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲18313.70 ▼0.957.70 ▲6.0348.41 ▲8.25
Dashboard /wp-admin2,209 ▲176.01 ▲1.11101.54 ▼3.4534.74 ▼8.66
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0041.14 ▲4.7834.48 ▲0.72
Add New Post /wp-admin/post-new.php1,522 ▲823.30 ▲5.76585.80 ▼93.8854.64 ▼4.60
Media Library /wp-admin/upload.php1,394 ▲94.23 ▼0.0698.42 ▼9.7544.47 ▼2.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-story-images/asi_core.php:6

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: music, mp3, audio, sound, image...

audio-story-images/audio-story-images.php 92% from 13 tests

The main PHP file in "Audio Story Images" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin613 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP44030297
JavaScript34327202
CSS25180
SVG11019
LESS12015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin