72% accesspress-anonymous-post

Code Review | Frontend Post WordPress Plugin - AccessPress Anonymous Post

WordPress plugin Frontend Post WordPress Plugin - AccessPress Anonymous Post scored 72% from 54 tests.

About plugin

  • Plugin page: accesspress-anony...
  • Plugin version: 2.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Sep 19, 2014
  • Latest release: Jan 28, 2022
  • Number of updates: 121
  • Update frequency: every 22.3 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

7,000+ active / 305,533 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
Installer ran successfully

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

An overview of server-side resources used by Frontend Post WordPress Plugin - AccessPress Anonymous Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1056.29 ▲7.20
Dashboard /wp-admin3.45 ▲0.0432.89 ▼0.92
Posts /wp-admin/edit.php3.67 ▲0.0337.36 ▲0.44
Add New Post /wp-admin/post-new.php6.91 ▼0.0690.49 ▼1,192.21
Media Library /wp-admin/upload.php3.33 ▲0.0326.11 ▲0.71
AccessPress Anonymous Post /wp-admin/admin.php?page=anonymous-post3.4228.98
Documentation /wp-admin/admin.php?page=ap-doc3.1318.39
Check Premium Version /wp-admin/admin.php?page=ap-premium3.1317.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 1 new option
New WordPress options
ap_settings

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Post WordPress Plugin - AccessPress Anonymous Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,949 ▲20516.11 ▲0.369.16 ▲2.872.27 ▼0.18
Dashboard /wp-admin2,931 ▲736.09 ▼0.09118.86 ▼8.87171.53 ▲10.83
Posts /wp-admin/edit.php2,696 ▲52.95 ▼0.2863.49 ▼0.71139.36 ▼7.02
Add New Post /wp-admin/post-new.php1,783 ▲12221.29 ▲4.96409.14 ▼11.25189.46 ▲29.87
Media Library /wp-admin/upload.php1,734 ▲395.51 ▲0.02128.00 ▼13.59206.95 ▲24.41
AccessPress Anonymous Post /wp-admin/admin.php?page=anonymous-post3,3668.85180.54207.72
Documentation /wp-admin/admin.php?page=ap-doc1,2219.40314.99205.40
Check Premium Version /wp-admin/admin.php?page=ap-premium2,59020.99544.38226.55

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • ap_settings

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/accesspress-anonymous-post/inc/cores/front-form.php
    • > /wp-content/plugins/accesspress-anonymous-post/accesspress-anonymous-post.php
    • > /wp-content/plugins/accesspress-anonymous-post/inc/cores/save-post.php
  • 43× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: editor_type in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 151
    • > PHP Notice
      Undefined variable: post_category in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 121
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-anonymous-post/inc/boards/about.php:2
    • > PHP Notice
      Undefined variable: login_message in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 130
    • > PHP Notice
      Undefined variable: editor_size in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 152
    • > PHP Notice
      Undefined variable: google_captcha_secretkey in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 167
    • > PHP Notice
      Undefined variable: login_link_text in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 131
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/accesspress-anonymous-post/inc/settings.php:6
    • > PHP Notice
      Undefined variable: math_captcha_error_message in wp-content/plugins/accesspress-anonymous-post/inc/cores/save-settings.php on line 164
    • > PHP Notice
      Undefined variable: ap_settings in wp-content/plugins/accesspress-anonymous-post/inc/cores/shortcode.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=ap-doc
    • > Network (severe)
    https://accesspressthemes.com/wordpress-plugin-instruction-anonymous-post/ - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=ap-doc
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugin-instruction-anonymous-post/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ap-premium
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=ap-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/accesspress-anonymous-post-premium/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

accesspress-anonymous-post/accesspress-anonymous-post.php 92% from 13 tests

Analyzing the main PHP file in "Frontend Post WordPress Plugin - AccessPress Anonymous Post" version 2.8.2
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 207 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,803 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PO File87131,2471,793
PHP131511641,460
CSS240400
JavaScript22413150

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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
11 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flicker.png1.45KB0.57KB▼ 60.47%
images/plugin.png12.50KB5.31KB▼ 57.50%
images/pinterest.png2.17KB1.25KB▼ 42.30%
images/ap-icon.png1.22KB0.27KB▼ 78.07%
images/aplite.png6.73KB3.22KB▼ 52.21%