78% aspearl-rrpa

Code Review | aspearl_rrpa

WordPress plugin aspearl_rrpa scored78%from 54 tests.

About plugin

  • Plugin page: aspearl-rrpa
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2015
  • Latest release: Feb 6, 2015
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: Aspearlsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼15.07ms] Passed 4 tests

This is a short check of server-side resources used by aspearl_rrpa
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.25 ▼10.46
Dashboard /wp-admin3.35 ▲0.0143.86 ▼26.23
Posts /wp-admin/edit.php3.40 ▲0.0544.66 ▲0.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.98 ▼23.42
Media Library /wp-admin/upload.php3.27 ▲0.0535.71 ▼0.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_aspearl_rrpa_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for aspearl_rrpa
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.191.65 ▼0.3840.82 ▼7.50
Dashboard /wp-admin2,206 ▲155.81 ▼0.08100.02 ▼4.0640.28 ▲3.51
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0138.86 ▲2.7835.34 ▲0.65
Add New Post /wp-admin/post-new.php1,537 ▲423.29 ▲0.09737.45 ▲82.3756.70 ▲3.49
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0396.57 ▲2.4146.09 ▲3.93

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_aspearl_rrpa_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/aspearl-rrpa/aspearl-rrpa.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aspearl-rrpa/aspearl-rrpa-widget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 require attention:
  • Donate link: Invalid url: ""
  • Screenshots: A description for screenshot #1 is required in aspearl-rrpa/assets to your readme.txt
You can take inspiration from this readme.txt

aspearl-rrpa/aspearl-rrpa.php 92% from 13 tests

Analyzing the main PHP file in "aspearl_rrpa" version 1.0
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin326 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31441246
CSS17780

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screen.png14.93KB7.87KB▼ 47.29%