72% eonet-frontend-publisher

Code Review | Eonet Frontend Publisher

WordPress plugin Eonet Frontend Publisher scored72%from 54 tests.

About plugin

  • Plugin page: eonet-frontend-pu...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Feb 22, 2018
  • Number of updates: 32
  • Update frequency: every 15.3 days
  • Top authors: alkaweb (93.75%)antonioeatgoat (9.38%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /7,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.47MB] [CPU: ▲0.29ms] Passed 4 tests

A check of server-side resources used by Eonet Frontend Publisher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.93 ▲1.4642.72 ▲1.98
Dashboard /wp-admin4.78 ▲1.4749.23 ▼3.29
Posts /wp-admin/edit.php4.83 ▲1.4750.94 ▲4.52
Add New Post /wp-admin/post-new.php7.38 ▲1.4996.01 ▼2.04
Media Library /wp-admin/upload.php4.70 ▲1.4750.19 ▲15.13
Eonet /wp-admin/admin.php?page=eonet4.7637.59
Frontend Publisher /wp-admin/admin.php?page=?page=eonet&eo_settings=frontend-publisher4.4729.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eonet Frontend Publisher
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲23015.77 ▲1.4216.66 ▲14.5535.38 ▼8.79
Dashboard /wp-admin2,236 ▲455.47 ▲0.57108.59 ▼9.7191.10 ▲43.90
Posts /wp-admin/edit.php2,134 ▲452.41 ▲0.4139.80 ▲2.4244.69 ▲8.67
Add New Post /wp-admin/post-new.php1,719 ▲17725.32 ▲7.08599.21 ▼64.5438.63 ▼13.15
Media Library /wp-admin/upload.php1,427 ▲424.77 ▲0.62101.62 ▼17.7591.53 ▲43.88
Eonet /wp-admin/admin.php?page=eonet1,1832.2232.4178.44
Frontend Publisher /wp-admin/admin.php?page=?page=eonet&eo_settings=frontend-publisher280.440.083.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% 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 everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/eonet-frontend-publisher/core/admin/EonetAdmin.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/admin/pages/EonetPageThemes.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/admin/pages/EonetPageExtensions.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/EonetMetaboxes.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/admin/EonetAdminPages.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/EonetOptions.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/bootstrap.php
    • > /wp-content/plugins/eonet-frontend-publisher/init.php
    • > /wp-content/plugins/eonet-frontend-publisher/component-frontend-publisher/EonetFrontendPublisher.php
    • > /wp-content/plugins/eonet-frontend-publisher/core/EonetComponents.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-frontend-publisher/core/admin/pages/views/extensions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ComponentFrontendPublisher\\EonetFrontendPublisher' not found in wp-content/plugins/eonet-frontend-publisher/component-frontend-publisher/views/form.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-frontend-publisher/core/admin/views/wrapper.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-frontend-publisher/core/admin/pages/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eonet-frontend-publisher/core/admin/pages/views/support.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\Admin\\EonetAdmin' not found in wp-content/plugins/eonet-frontend-publisher/core/admin/pages/views/themes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetOptions' not found in wp-content/plugins/eonet-frontend-publisher/component-frontend-publisher/settings.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=?page=eonet&eo_settings=frontend-publisher
    • > Network (severe)
    wp-admin/admin.php?page=?page=eonet&eo_settings=frontend-publisher - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: post types, ajax, edit, frontend, live...

eonet-frontend-publisher/init.php 85% from 13 tests

This is the main PHP file of "Eonet Frontend Publisher" version 1.0.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("eonet-frontend-publisher.php" instead of "init.php")

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
Good job! No executable or dangerous file extensions detected19,026 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP257491,03211,644
SVG2034,898
Sass154071,793
JavaScript6215195687
CSS43824

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.15
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods107
▷ Static methods4239.25%
▷ Public methods8478.50%
▷ Protected methods2119.63%
▷ Private methods21.87%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
12 PNG files occupy 0.53MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/images/colorpicker/hue.png0.49KB0.50KB0.00%
core/assets/images/logo.png10.69KB6.80KB▼ 36.38%
core/assets/images/colorpicker/alpha.png0.48KB1.68KB0.00%
core/assets/images/themes/woffice.png446.42KB194.26KB▼ 56.48%
core/assets/images/32.png1.87KB1.33KB▼ 28.84%