79% allow-php-execute

Code Review | Allow PHP Execute

WordPress plugin Allow PHP Execute scored79%from 54 tests.

About plugin

  • Plugin page: allow-php-execute
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Aug 14, 2015
  • Latest release: Aug 14, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sksdev (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /20,844 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Allow PHP Execute
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.22 ▼1.24
Dashboard /wp-admin3.32 ▲0.0149.23 ▼17.76
Posts /wp-admin/edit.php3.37 ▲0.0147.60 ▼6.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.26 ▼12.11
Media Library /wp-admin/upload.php3.24 ▲0.0140.04 ▲7.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Allow PHP Execute
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.25 ▼0.101.78 ▲0.1545.23 ▼0.55
Dashboard /wp-admin2,199 ▲285.65 ▼0.0291.02 ▼1.7440.69 ▼6.80
Posts /wp-admin/edit.php2,107 ▲102.03 ▲0.0137.65 ▲4.6835.34 ▼1.85
Add New Post /wp-admin/post-new.php1,538 ▲1218.07 ▼5.04666.74 ▲9.7378.60 ▲27.00
Media Library /wp-admin/upload.php1,404 ▲134.21 ▲0.03101.73 ▼4.3151.40 ▲6.36
Allow PHP Execute /wp-admin/allow-php-execute.php260.420.0915.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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)
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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/allow-php-execute/allow-php-execute.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/allow-php-execute.php
    • > Network (severe)
    wp-admin/allow-php-execute.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: post, content, sidebar, widget, page...

allow-php-execute/allow-php-execute.php Passed 13 tests

The primary PHP file in "Allow PHP Execute" version 1.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Executes PHP code on WordPress post ,page and on default Text Widget

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
Success! There were no dangerous files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11890

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png1.66KB1.08KB▼ 34.49%
screenshot-1.png10.74KB6.36KB▼ 40.74%
screenshot-4.png8.27KB5.85KB▼ 29.27%
screenshot-2.png13.46KB8.84KB▼ 34.32%
screenshot-3.png8.73KB4.57KB▼ 47.66%