90% add-any-extension-to-pages

Code Review | Add Any Extension to Pages

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

About plugin

  • Plugin page: add-any-extension...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Sep 19, 2023
  • Number of updates: 31
  • Update frequency: every 92.4 days
  • Top authors: Marios Alexandrou (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /15,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.99ms] 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.46 ▲0.0039.77 ▼3.98
Dashboard /wp-admin3.31 ▼0.0445.34 ▼25.77
Posts /wp-admin/edit.php3.36 ▲0.0047.08 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.47 ▼10.84
Media Library /wp-admin/upload.php3.23 ▲0.0033.47 ▼3.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Add Any Extension to Pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.221.71 ▼0.2444.72 ▲1.48
Dashboard /wp-admin2,206 ▲184.82 ▼0.20109.89 ▼8.0144.85 ▲0.46
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0139.99 ▲3.3735.43 ▲0.88
Add New Post /wp-admin/post-new.php1,548 ▲618.28 ▼4.51648.49 ▲9.3068.71 ▲17.76
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0699.06 ▼4.9646.20 ▲0.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: extension, page extension, ext, add extension, extensions...

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

The principal PHP file in "Add Any Extension to Pages" v. 1.5 is loaded by WordPress automatically on each request
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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin249 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13442150
CSS114099

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected