84% aparat-responsive

Code Review | Aparat Responsive

WordPress plugin Aparat Responsive scored84%from 54 tests.

About plugin

  • Plugin page: aparat-responsive
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2018
  • Latest release: Jun 19, 2019
  • Number of updates: 17
  • Update frequency: every 25.2 days
  • Top authors: mkkmail (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /8,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Aparat Responsive
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.13 ▼1.97
Dashboard /wp-admin3.31 ▲0.0143.81 ▲0.81
Posts /wp-admin/edit.php3.36 ▲0.0046.24 ▲0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.37 ▼0.08
Media Library /wp-admin/upload.php3.23 ▲0.0032.80 ▼1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aparat Responsive
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.83 ▲0.2041.58 ▲0.88
Dashboard /wp-admin2,195 ▲205.61 ▼0.1192.76 ▼4.5540.31 ▼3.23
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0139.67 ▲5.6136.48 ▼2.64
Add New Post /wp-admin/post-new.php1,528 ▼023.21 ▲0.19668.08 ▼5.3957.51 ▲6.49
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0695.67 ▼4.0340.50 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aparat-responsive/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (افزودن شورت کد آپارات در 3 مرحله ساده)
You can look at the official readme.txt

aparat-responsive/index.php 92% from 13 tests

The primary PHP file in "Aparat Responsive" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aparat-responsive.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected46 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15126
PHP16820

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tinyMCE/aparat.png1.59KB0.86KB▼ 46.02%