84% frontend-add-post

Code Review | Frontend Add Post

WordPress plugin Frontend Add Post scored84%from 54 tests.

About plugin

  • Plugin page: frontend-add-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Jul 20, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: aiyaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.95ms] Passed 4 tests

This is a short check of server-side resources used by Frontend Add Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0534.48 ▼4.21
Dashboard /wp-admin3.27 ▼0.0836.17 ▼20.02
Posts /wp-admin/edit.php3.40 ▲0.0444.75 ▼6.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.56 ▼1.51
Media Library /wp-admin/upload.php3.27 ▲0.0433.69 ▲3.17

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Add Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12413.92 ▲0.6810.62 ▲6.4150.84 ▲10.76
Dashboard /wp-admin2,189 ▲125.63 ▲0.0693.40 ▲6.1941.95 ▲0.93
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0040.42 ▼1.0536.08 ▼4.20
Add New Post /wp-admin/post-new.php1,526 ▼923.57 ▼1.22617.69 ▼6.5852.53 ▼26.91
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0793.48 ▼1.2243.94 ▲4.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/frontend-add-post/frontend-add-post.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: add post, post, shortcode post, ajax frontend, frontend...

frontend-add-post/frontend-add-post.php Passed 13 tests

The entry point to "Frontend Add Post" version 1.0 is a PHP file that has certain tags in its header comment area
97 characters long description:
Add a post on frontend with ajax also list down published post with simple yet attractive layout.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected895 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3101116519
CSS3169209
PHP15324167

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/user-icon.png1.30KB0.00KB▼ 100.00%