84% one-page-express-companion

Code Review | One Page Express Companion

WordPress plugin One Page Express Companion scored84%from 54 tests.

About plugin

  • Plugin page: one-page-express-...
  • Plugin version: 1.6.34
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Nov 6, 2023
  • Number of updates: 50
  • Update frequency: every 48.1 days
  • Top authors: horearadu (96%)extendthemes (6%)

Code review

54 tests

User reviews

10 reviews

Install metrics

20,000+ active /553,520 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.21MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by One Page Express Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2039.95 ▼2.06
Dashboard /wp-admin3.57 ▲0.2346.41 ▼17.55
Posts /wp-admin/edit.php3.62 ▲0.2750.57 ▲5.84
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.33 ▼3.79
Media Library /wp-admin/upload.php3.43 ▲0.2035.00 ▲0.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 135 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for One Page Express Companion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.06 ▼0.241.86 ▲0.0443.85 ▼3.93
Dashboard /wp-admin2,195 ▲185.61 ▼0.0487.20 ▼8.5340.30 ▼0.11
Posts /wp-admin/edit.php2,097 ▼01.96 ▲0.0135.36 ▲1.1433.18 ▼0.99
Add New Post /wp-admin/post-new.php1,526 ▼023.68 ▲0.44691.18 ▼34.6348.39 ▼6.83
Media Library /wp-admin/upload.php1,403 ▲34.14 ▼0.2096.56 ▼18.3939.56 ▼8.62

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\BasePanel' not found in wp-content/plugins/one-page-express-companion/src/Customizer/Panels/FooterPanel.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/one-page-express-companion/theme-data/one-page-express/partials/header/content-on-left.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/one-page-express-companion/theme-data/one-page-express/partials/header/default.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\BaseControl' not found in wp-content/plugins/one-page-express-companion/src/Customizer/Controls/LabelControl.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/one-page-express-companion/src/Customizer/BasePanel.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-page-express-companion/support/wp-5.8.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\Controls\\RowsListControl' not found in wp-content/plugins/one-page-express-companion/src/Customizer/Controls/ContentSectionsListControl.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\BaseSetting' not found in wp-content/plugins/one-page-express-companion/src/Customizer/Settings/ObjectSetting.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\Template' not found in wp-content/plugins/one-page-express-companion/theme-data/one-page-express/templates/home-page.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'OnePageExpress\\Customizer\\Controls\\ColorBoxesControl' not found in wp-content/plugins/one-page-express-companion/src/Customizer/Controls/CssClassBoxesControl.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
1 plugin tags: onepage companion drag drop builder

one-page-express-companion/one-page-express-companion.php Passed 13 tests

The entry point to "One Page Express Companion" version 1.6.34 is a PHP file that has certain tags in its header comment area
114 characters long description:
The One Page Express Companion plugin adds drag and drop page builder functionality to the One Page Express theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected23,456 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript262,54493110,753
CSS81,2152287,099
PHP431,0642144,603
JSON5001,001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.37
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods206
▷ Static methods4521.84%
▷ Public methods19192.72%
▷ Protected methods83.88%
▷ Private methods73.40%
Functions58
▷ Named functions2644.83%
▷ Anonymous functions3255.17%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ 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
24 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
theme-data/one-page-express/sections/images/logo9.png7.10KB4.25KB▼ 40.15%
theme-data/one-page-express/sections/images/logo10.png10.75KB4.82KB▼ 55.16%
assets/images/cog.png0.33KB0.39KB0.00%
assets/images/swap.png0.33KB0.38KB0.00%
theme-data/one-page-express/sections/images/logo1.png9.05KB4.74KB▼ 47.55%