83% wopo-sound-recorder

Code Review | WoPo Sound Recorder

WordPress plugin WoPo Sound Recorder scored83%from 54 tests.

About plugin

  • Plugin page: wopo-sound-recorder
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Jul 14, 2021
  • Latest release: Jul 14, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: thanhbinh8703 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 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
This plugin's installer ran successfully

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

A check of server-side resources used by WoPo Sound Recorder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.28 ▼3.97
Dashboard /wp-admin3.31 ▲0.0048.44 ▼4.06
Posts /wp-admin/edit.php3.36 ▲0.0049.49 ▼5.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.96 ▼16.07
Media Library /wp-admin/upload.php3.23 ▲0.0037.93 ▲1.98

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WoPo Sound Recorder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.13 ▼1.551.70 ▼0.4143.93 ▼1.15
Dashboard /wp-admin2,203 ▲185.87 ▼0.03106.21 ▼4.3439.01 ▼4.11
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.26 ▲1.2036.36 ▲0.59
Add New Post /wp-admin/post-new.php1,519 ▼1423.18 ▲0.13680.79 ▼12.2459.17 ▼0.27
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0598.19 ▼20.3243.22 ▼4.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wopo-sound-recorder/wopo-sound-recorder.php:21

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: html5, web-app, app, wopo, sound...

wopo-sound-recorder/wopo-sound-recorder.php 77% from 13 tests

"WoPo Sound Recorder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.2")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "7.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin23,094 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript312,2757,20221,525
CSS859751,107
SVG100278
HTML230118
PHP141439
Markdown115027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
html/app/img/buttons.png0.39KB0.22KB▼ 44.67%
html/app/img/buttons-spaced-out.png0.41KB0.25KB▼ 40.00%