100% add-any-extension-to-pages

Code Review | Add Any Extension to Pages

WordPress plugin Add Any Extension to Pages scored 100% from 54 tests.

About plugin

  • Plugin page: add-any-extension...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 17, 2015
  • Latest release: Feb 17, 2022
  • Number of updates: 27
  • Update frequency: every 84.6 days
  • Top authors: Marios Alexandrou (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active / 13,298 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼311.03ms] Passed 4 tests

Server-side resources used by Add Any Extension to Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.98 ▲1.95
Dashboard /wp-admin3.41 ▲0.0032.87 ▼0.26
Posts /wp-admin/edit.php3.64 ▲0.0038.28 ▲2.93
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.50 ▼1,245.32
Media Library /wp-admin/upload.php3.29 ▲0.0024.58 ▼0.48

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

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

Browser metrics Passed 4 tests

Add Any Extension to Pages: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.16 ▲0.565.98 ▼0.222.42 ▼0.73
Dashboard /wp-admin2,895 ▲416.11 ▼0.17119.33 ▼14.15153.26 ▼6.20
Posts /wp-admin/edit.php2,688 ▼63.35 ▼0.0163.61 ▲0.33141.17 ▼0.01
Add New Post /wp-admin/post-new.php1,711 ▲5021.78 ▲5.67416.86 ▲4.24159.49 ▼4.83
Media Library /wp-admin/upload.php1,695 ▼65.45 ▼0.06145.10 ▲1.63191.00 ▼0.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: ext, pages, extension, extensions, add extension...

add-any-extension-to-pages/add-any-extension-to-pages.php Passed 13 tests

The main PHP file in "Add Any Extension to Pages" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Add any extension of your choosing (e.g. .html, .htm, .jsp, .aspx, .cfm) to WordPress pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin249 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13442150
CSS114099

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin