84% append-extensions-on-pages

Code Review | Append extensions on Pages

WordPress plugin Append extensions on Pages scored 84% from 54 tests.

About plugin

  • Plugin page: append-extensions...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Sep 9, 2017
  • Number of updates: 14
  • Update frequency: every 83.9 days
  • Top authors: sureshHARDIYA (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 10,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Append extensions on Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.84 ▼3.86
Dashboard /wp-admin3.32 ▲0.0149.55 ▲3.66
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▲5.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.43 ▲8.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.55 ▲4.84
Append Extension settings /wp-admin/admin.php?page=aeop_settings3.2028.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
aeop_fburl

Browser metrics Passed 4 tests

An overview of browser requirements for Append extensions on Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▼0.281.74 ▼0.2942.75 ▼8.04
Dashboard /wp-admin2,203 ▲155.80 ▲0.8795.86 ▼5.9037.54 ▼6.77
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0138.80 ▲4.6034.97 ▲0.97
Add New Post /wp-admin/post-new.php1,534 ▲1323.02 ▲0.02595.04 ▼62.7146.50 ▼15.06
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.1395.89 ▼15.1242.99 ▼1.94
Append Extension settings /wp-admin/admin.php?page=aeop_settings8462.0221.5129.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • aeop_fburl
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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)
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/append-extensions-on-pages/append_extension_on_pages.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (permalink_setting.png), #2 (plugin_dashboard_listing.png), #3 (setting_page.png)
You can look at the official readme.txt

append-extensions-on-pages/append_extension_on_pages.php 92% from 13 tests

Analyzing the main PHP file in "Append extensions on Pages" version 1.1.2
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("append-extensions-on-pages.php" instead of "append_extension_on_pages.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12333118

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions9
▷ Named functions9100.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
3 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
setting_page.png30.13KB8.39KB▼ 72.15%
plugin_dashboard_listing.png27.93KB8.46KB▼ 69.72%
permalink_setting.png58.86KB18.60KB▼ 68.40%