89% wp-frontend-publish-editor

Code Review | AL Frontend Publish Editor

WordPress plugin AL Frontend Publish Editor scored89%from 54 tests.

About plugin

  • Plugin page: wp-frontend-publi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 6.3.1
  • First release: Apr 5, 2021
  • Latest release: Apr 5, 2021
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: alexlead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.19ms] Passed 4 tests

Server-side resources used by AL Frontend Publish Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0339.38 ▼5.09
Dashboard /wp-admin3.37 ▲0.0349.67 ▲1.31
Posts /wp-admin/edit.php3.42 ▲0.0350.13 ▲0.35
Add New Post /wp-admin/post-new.php5.95 ▲0.0383.40 ▼17.31
Media Library /wp-admin/upload.php3.29 ▲0.0337.12 ▲2.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for AL Frontend Publish Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.24 ▼1.121.66 ▼0.2140.38 ▼2.12
Dashboard /wp-admin2,215 ▲275.85 ▲0.9699.41 ▼5.6638.38 ▼5.23
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0133.82 ▼7.0332.05 ▼4.81
Add New Post /wp-admin/post-new.php1,524 ▼417.79 ▼0.39655.50 ▲31.4443.34 ▼8.30
Media Library /wp-admin/upload.php1,394 ▲34.20 ▲0.0394.29 ▼4.5140.20 ▼3.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wp, editor, post, frontend, publishing...

wp-frontend-publish-editor/alshc_frontend_edit.php 85% from 13 tests

"AL Frontend Publish Editor" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-frontend-publish-editor.php" instead of "alshc_frontend_edit.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected952 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1550158376
PHP8155122338
PO File1282889
CSS3182482
SVG110037
Markdown16030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png21.68KB10.45KB▼ 51.79%
assets/icon-128x128.png5.46KB3.13KB▼ 42.69%
assets/screenshot-6.png10.47KB5.07KB▼ 51.57%
assets/screenshot-2.png19.76KB9.50KB▼ 51.91%
assets/screenshot-5.png14.88KB7.54KB▼ 49.32%