84% fusion-extension-post-details

Code Review | Fusion Page Builder : Extension - Post Details

WordPress plugin Fusion Page Builder : Extension - Post Details scored 84% from 54 tests.

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Dec 14, 2017
  • Number of updates: 21
  • Update frequency: every 24.0 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.75ms] Passed 4 tests

A check of server-side resources used by Fusion Page Builder : Extension - Post Details
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.32 ▼7.08
Dashboard /wp-admin3.31 ▲0.0142.47 ▼8.20
Posts /wp-admin/edit.php3.36 ▲0.0044.76 ▼5.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.94 ▲4.77
Media Library /wp-admin/upload.php3.23 ▲0.0032.98 ▲1.95

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fusion Page Builder : Extension - Post Details
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.60 ▼0.781.72 ▼0.4440.72 ▼10.17
Dashboard /wp-admin2,206 ▲185.89 ▲0.0499.52 ▲1.5039.46 ▲0.08
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0839.88 ▼0.1334.97 ▼0.99
Add New Post /wp-admin/post-new.php1,547 ▲1318.81 ▼4.37613.02 ▲0.2865.81 ▲10.64
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0493.11 ▼12.6439.91 ▼6.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-post-details/includes/extensions/post-details.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-post-details/fusion-extension-post-details.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

fusion-extension-post-details/fusion-extension-post-details.php Passed 13 tests

The main file in "Fusion Page Builder : Extension - Post Details" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Post Details Extension Package for Fusion.

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
There were no executable files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22555102
CSS1134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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
No PNG images were found in this plugin