79% promote-apex

Code Review | Promote Apex

WordPress plugin Promote Apex scored79%from 54 tests.

About plugin

  • Plugin page: promote-apex
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Jun 3, 2021
  • Number of updates: 18
  • Update frequency: every 22.1 days
  • Top authors: ankupromote (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /598 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
Install script ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▲8.75ms] Passed 4 tests

Server-side resources used by Promote Apex
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4865.28 ▲24.43
Dashboard /wp-admin3.77 ▲0.47107.08 ▲54.76
Posts /wp-admin/edit.php3.76 ▲0.4154.61 ▼0.14
Add New Post /wp-admin/post-new.php6.34 ▲0.4593.97 ▼3.68
Media Library /wp-admin/upload.php3.66 ▲0.4350.11 ▲14.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Promote Apex
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.25 ▼0.381.81 ▼0.1539.35 ▼5.22
Dashboard /wp-admin1,745 ▼4295.31 ▼0.3680.11 ▼9.2740.43 ▼0.38
Posts /wp-admin/edit.php1,277 ▼8261.91 ▼0.0732.25 ▼9.5132.01 ▼6.71
Add New Post /wp-admin/post-new.php1,553 ▲2723.66 ▲0.69612.11 ▼65.6151.86 ▼4.80
Media Library /wp-admin/upload.php1,429 ▲294.16 ▼0.1699.27 ▼2.1743.85 ▼4.10

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • wp_calendar_block_has_published_posts
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/promote-apex/promote-apex.php
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/promote-apex/templates/modal.php on line 1
    • > PHP Notice
      Trying to get property 'max_participants' of non-object in wp-content/plugins/promote-apex/templates/event.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/promote-apex/templates/event.php:40
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/promote-apex/templates/event.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/Base/Enqueue.php:8
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/promote-apex/templates/event.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/promote-apex/templates/courses.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/Pages/Admin.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Apex\\Base\\BaseController' not found in wp-content/plugins/promote-apex/apex/WpApi/Callbacks/AdminCallbacks.php:11
    • > PHP Notice
      Trying to get property 'event_dates' of non-object in wp-content/plugins/promote-apex/templates/event.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: promote, wp, apex

promote-apex/promote-apex.php Passed 13 tests

The main PHP script in "Promote Apex" version 1.3.1 is automatically included on every request by WordPress
52 characters long description:
Plugin used to connect a wordpress website with Apex

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
Everything looks great! No dangerous files found in this plugin9,372 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS1176,314
PHP283923212,279
JavaScript314161529
PO File190106229
JSON20021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.21
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods112
▷ Static methods87.14%
▷ Public methods10896.43%
▷ Protected methods00.00%
▷ Private methods43.57%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
There were not PNG files found in your plugin