89% all-in-one-php

Code Review | All In One Php

WordPress plugin All In One Php scored 89% from 54 tests.

About plugin

  • Plugin page: all-in-one-php
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 5.8.1
  • First release: Jul 4, 2015
  • Latest release: Jul 4, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: aiswaryaswain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 6,606 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼142.36ms] Passed 4 tests

This is a short check of server-side resources used by All In One Php
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.56 ▲12.93
Dashboard /wp-admin3.06 ▲0.0142.33 ▼5.76
Posts /wp-admin/edit.php3.11 ▲0.0139.89 ▼6.52
Add New Post /wp-admin/post-new.php5.43 ▼0.0190.31 ▼549.09
Media Library /wp-admin/upload.php3.00 ▼0.0030.64 ▼8.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

All In One Php: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.25 ▲0.469.24 ▼0.2151.79 ▲5.34
Dashboard /wp-admin2,972 ▲386.03 ▲0.09131.68 ▼8.17108.39 ▼3.26
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0065.55 ▼3.9592.33 ▼4.38
Add New Post /wp-admin/post-new.php1,875 ▲37719.22 ▲0.42369.92 ▲12.98102.21 ▼6.06
Media Library /wp-admin/upload.php1,809 ▲25.04 ▲0.04158.63 ▲15.73113.61 ▼5.49
All In One Php /wp-admin/all-in-one-php.php260.900.1011.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/all-in-one-php/all-in-one-php.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/all-in-one-php.php
    • > Network (severe)
    wp-admin/all-in-one-php.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: title, page, sidebar, php, post...

all-in-one-php/all-in-one-php.php Passed 13 tests

The main file in "All In One Php" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Executes PHP code on WordPress page ,page and on default Text Widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png60.66KB25.03KB▼ 58.74%