78% afterem

Code Review | AfterEM

WordPress plugin AfterEM scored78%from 54 tests.

About plugin

  • Plugin page: afterem
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: Sep 8, 2015
  • Number of updates: 4
  • Update frequency: every 8.3 days
  • Top authors: mbrooks34 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.70ms] Passed 4 tests

This is a short check of server-side resources used by AfterEM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.89 ▲0.70
Dashboard /wp-admin3.35 ▲0.0545.93 ▼3.06
Posts /wp-admin/edit.php3.40 ▲0.0546.39 ▲0.23
Add New Post /wp-admin/post-new.php5.93 ▲0.05102.86 ▲12.26
Media Library /wp-admin/upload.php3.27 ▲0.0435.26 ▼0.67
AfterEM /wp-admin/edit.php?post_type=event&page=AEM3.0524.94

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AfterEM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.102.00 ▲0.3843.67 ▼4.03
Dashboard /wp-admin2,206 ▲184.84 ▼0.12108.03 ▲2.1640.84 ▼3.24
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0335.31 ▼3.7232.54 ▲0.37
Add New Post /wp-admin/post-new.php1,542 ▲2318.11 ▼5.26640.57 ▲48.9259.90 ▲3.47
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.0396.17 ▼5.3639.85 ▼1.02
AfterEM /wp-admin/edit.php?post_type=event&page=AEM280.440.073.89

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 no errors were found, 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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/afterem/after-em.php:56

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=event&page=AEM
    • > Network (severe)
    wp-admin/edit.php?post_type=event&page=AEM - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% 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
4 plugin tags: events manager, afterem, after events mailer, after-em

afterem/after-em.php 92% from 13 tests

The entry point to "AfterEM" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("afterem.php" instead of "after-em.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin146 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15679146

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
No PNG images were found in this plugin