84% listable-wpai-addon

Code Review | Listable WPAI Addon

WordPress plugin Listable WPAI Addon scored84%from 54 tests.

About plugin

  • Plugin page: listable-wpai-addon
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Jul 22, 2016
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: ajouda66 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,426 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.16MB] [CPU: ▼1.15ms] Passed 4 tests

This is a short check of server-side resources used by Listable WPAI Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1639.20 ▲0.76
Dashboard /wp-admin3.46 ▲0.1645.67 ▼3.57
Posts /wp-admin/edit.php3.57 ▲0.2244.75 ▼1.61
Add New Post /wp-admin/post-new.php6.04 ▲0.1691.25 ▼0.18
Media Library /wp-admin/upload.php3.38 ▲0.1637.38 ▲3.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Listable WPAI Addon: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.23 ▼1.421.82 ▲0.0744.59 ▼0.38
Dashboard /wp-admin2,226 ▲386.04 ▲1.1798.21 ▼15.2537.92 ▼2.94
Posts /wp-admin/edit.php2,109 ▲202.04 ▲0.0337.62 ▼2.8638.04 ▲0.75
Add New Post /wp-admin/post-new.php1,548 ▲1523.21 ▲0.12654.04 ▼26.0050.07 ▼6.37
Media Library /wp-admin/upload.php1,408 ▲204.21 ▲0.04114.04 ▲8.9446.84 ▲1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/listable-wpai-addon/rapid-addon.php:843

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: import job listings, listable, import listable listings, wp all import, import listable image...

listable-wpai-addon/listable-wpai-addon.php Passed 13 tests

This is the main PHP file of "Listable WPAI Addon" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Import geolocation listings and related images into the Listable theme with WP All Import (free or pro version)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin832 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2287104832

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin