10% my-appeal

Code Review | My Appeal

WordPress plugin My Appeal scored10%from 54 tests.

About plugin

  • Plugin page: my-appeal
  • Plugin version: 2.2.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2018
  • Latest release: Sep 7, 2020
  • Number of updates: 35
  • Update frequency: every 26.3 days
  • Top authors: jordanleven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /862 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/my-appeal/my-appeal.php+30
    filemtime(): stat failed for wp-content/plugins/my-appeal//dist/my-appeal.built.min.js

Server metrics [RAM: ▼1.94MB] [CPU: ▼52.04ms] Passed 4 tests

Analyzing server-side resources used by My Appeal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.413.78 ▼35.15
Dashboard /wp-admin2.06 ▼1.245.42 ▼46.41
Posts /wp-admin/edit.php2.07 ▼1.295.58 ▼39.56
Add New Post /wp-admin/post-new.php2.06 ▼3.824.69 ▼87.03
Media Library /wp-admin/upload.php2.07 ▼1.166.20 ▼29.54

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

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

Browser metrics Passed 4 tests

My Appeal: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.65 ▼0.995.01 ▲3.2337.13 ▼7.60
Dashboard /wp-admin2,211 ▲205.87 ▲0.07112.65 ▲7.2443.26 ▼4.29
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0241.09 ▼2.3734.78 ▼2.16
Add New Post /wp-admin/post-new.php1,524 ▲1023.20 ▲5.71683.67 ▼12.2963.53 ▲6.46
Media Library /wp-admin/upload.php1,396 ▲114.18 ▼0.04103.22 ▼5.3641.35 ▼5.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/my-appeal/my-appeal.php+30
    filemtime(): stat failed for wp-content/plugins/my-appeal//dist/my-appeal.built.min.js
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function JordanLeven\\Plugins\\MyAppeal\\wp_register_script() in wp-content/plugins/my-appeal/my-appeal.php:26

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: imodules, appeal code, my appeal, designation id

my-appeal/my-appeal.php Passed 13 tests

"My Appeal" version 2.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
My Appeal allows you to append or replace appeal codes on iModules giving links with solicitation-specific appeal codes.

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
No dangerous file extensions were detected20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181819
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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
Namespaces1
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin