62% expand-maker

Code Review | Read More & Accordion and popups

WordPress plugin Read More & Accordion and popups scored62%from 54 tests.

About plugin

  • Plugin page: expand-maker
  • Plugin version: 3.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Nov 26, 2023
  • Number of updates: 649
  • Update frequency: every 4.5 days
  • Top authors: edmon.parker (100%)

Code review

54 tests

User reviews

154 reviews

Install metrics

20,000+ active /835,151 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.91MB] [CPU: ▲12.22ms] Passed 4 tests

Server-side resources used by Read More & Accordion and popups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9243.41 ▲4.51
Dashboard /wp-admin4.20 ▲0.9060.09 ▲11.12
Posts /wp-admin/edit.php4.32 ▲0.9662.43 ▲17.30
Add New Post /wp-admin/post-new.php6.81 ▲0.93106.97 ▲20.73
Media Library /wp-admin/upload.php4.13 ▲0.9051.67 ▲15.95
More Plugins /wp-admin/admin.php?page=rmmore-plugins4.1045.30
Find and Replace /wp-admin/admin.php?page=rmmoreFindReplace4.1755.08
Settings /wp-admin/admin.php?page=rmmore-settings4.1557.11
Read More /wp-admin/admin.php?page=readMore4.1754.00
Subscribers Pro Extension /wp-admin/admin.php?page=rmmoreSubscribers4.1042.19
Add New Type /wp-admin/admin.php?page=addNew4.1550.51
Support /wp-admin/admin.php?page=yrmSupportKey4.1459.93
Add New /wp-admin/admin.php?page=button4.1049.14
Help /wp-admin/admin.php?page=rmmore-help4.1045.89
Video Tutorials /wp-admin/admin.php?page=yrmTutorialKey4.1060.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: 4 new tables, 11 new options
New tables
wp_expm_maker_pages
wp_expm_maker
wp_find_and_replace
wp_expm_hiiden_content
New WordPress options
YrmUsageDays
can_compress_scripts
db_upgraded
YrmInstallDate
theysaidso_admin_options
yrm_redirect
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
YrmShowNextTime
...

Browser metrics Passed 4 tests

A check of browser resources used by Read More & Accordion and popups
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,013 ▲25114.17 ▼0.171.55 ▼0.1738.12 ▼5.29
Dashboard /wp-admin2,419 ▲2415.67 ▼0.0594.51 ▼18.0240.75 ▼2.82
Posts /wp-admin/edit.php2,337 ▲2372.18 ▲0.1840.69 ▲3.0136.60 ▼0.07
Add New Post /wp-admin/post-new.php6,423 ▲4,89719.40 ▼3.82882.42 ▲185.0534.77 ▼10.06
Media Library /wp-admin/upload.php1,614 ▲2144.32 ▲0.1397.54 ▲3.9541.56 ▼0.39
More Plugins /wp-admin/admin.php?page=rmmore-plugins1,2121.7424.1330.40
Find and Replace /wp-admin/admin.php?page=rmmoreFindReplace1,3265.9794.8235.21
Settings /wp-admin/admin.php?page=rmmore-settings1,4776.29101.0728.46
Read More /wp-admin/admin.php?page=readMore1,3305.9262.3130.09
Subscribers Pro Extension /wp-admin/admin.php?page=rmmoreSubscribers1,0081.7527.5823.75
Add New Type /wp-admin/admin.php?page=addNew1,6725.8265.3854.40
Support /wp-admin/admin.php?page=yrmSupportKey1,4535.9259.4828.19
Add New /wp-admin/admin.php?page=button11,9257.59191.7677.74
Help /wp-admin/admin.php?page=rmmore-help2,29515.80546.1379.33
Video Tutorials /wp-admin/admin.php?page=yrmTutorialKey3,98537.36880.8461.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_expm_maker
    • wp_find_and_replace
    • wp_expm_hiiden_content
    • wp_expm_maker_pages
  • Zombie WordPress options were found after uninstall: 10 options
    • EXPM_VERSION
    • YrmUsageDays
    • theysaidso_admin_options
    • YrmShowNextTime
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • YrmInstallDate
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=addNew
    • > Notice in wp-content/plugins/expand-maker/files/ReadMoreAdminHelper.php+176
    Undefined index: yrm_group_name
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMorePages.php+55
    Undefined index: readMoreId
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/views/readMoreAddNewButton.php+33
    Undefined index: yrm_type
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMoreIncludeManager.php+147
    Undefined index: more-title
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMoreIncludeManager.php+148
    Undefined index: less-title
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMoreIncludeManager.php+150
    Undefined index: enable-tooltip
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMoreIncludeManager.php+151
    Undefined index: enable-tooltip-text
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/expand-maker/classes/ReadMoreIncludeManager.php+300
    Undefined index: yrm-editor-js

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/expand-maker/views/help.php
  • 63× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function getOptionValue() on null in wp-content/plugins/expand-maker/views/sections/linkCutsomOptions.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReadMoreData' not found in wp-content/plugins/expand-maker/views/accordion/customFunctionality.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReadMoreData' not found in wp-content/plugins/expand-maker/views/accordion/settings.php:2
    • > PHP Notice
      Undefined variable: dataObj in wp-content/plugins/expand-maker/views/sections/aLinkCutsomOptions.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/expand-maker/views/support.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ReadMoreAdminHelper' not found in wp-content/plugins/expand-maker/views/sections/inlineTypeOptions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expand-maker/js/javascript.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expand-maker/files/ReadMoreAdminPost.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/expand-maker/views/sections/customFunctionality.php:3
    • > PHP Warning
      Use of undefined constant YRM_PKG - assumed 'YRM_PKG' (this will throw an Error in a future version of PHP) in wp-content/plugins/expand-maker/views/help.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #10, #11, #9 in expand-maker/assets to your readme.txt
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can take inspiration from this readme.txt

expand-maker/expand-maker.php Passed 13 tests

The main PHP file in "Read More & Accordion and popups" ver. 3.3.0 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Hide additional content by wrapping content in an [expander_maker] shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected26,004 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
CSS1370910310,643
PHP711,0371178,784
JavaScript151,4803286,237
SVG300292
PO File1171648

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity14.55
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes31
▷ Abstract classes26.45%
▷ Concrete classes2993.55%
▷ Final classes00.00%
Methods317
▷ Static methods6721.14%
▷ Public methods26884.54%
▷ Protected methods00.00%
▷ Private methods4915.46%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 1.05MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/admin/jQueryDialog/images/ui-icons_8c291d_256x240.png4.27KB4.11KB▼ 3.78%
css/admin/jQueryDialog/images/ui-icons_fbdb93_256x240.png4.27KB4.11KB▼ 3.78%
img/link.png51.04KB18.91KB▼ 62.96%
img/sprite-skin-flat.png0.30KB0.28KB▼ 5.92%
css/admin/jQueryDialog/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%