84% amr-personalise

Code Review | amr personalise

WordPress plugin amr personalise scored84%from 54 tests.

About plugin

  • Plugin page: amr-personalise
  • Plugin version: 2.10
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 29, 2009
  • Latest release: Aug 17, 2020
  • Number of updates: 32
  • Update frequency: every 127.4 days
  • Top authors: anmari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by amr personalise
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.52 ▼0.07
Dashboard /wp-admin3.31 ▲0.0145.10 ▼3.14
Posts /wp-admin/edit.php3.36 ▲0.0146.67 ▼3.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.18 ▼9.93
Media Library /wp-admin/upload.php3.23 ▲0.0138.86 ▲6.41
Personalise /wp-admin/options-general.php?page=amr-personalise/amr-personalise.php3.2032.54

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by amr personalise
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▲0.231.74 ▲0.0746.29 ▲4.96
Dashboard /wp-admin2,196 ▲165.64 ▲0.0588.98 ▲1.4835.75 ▼0.89
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.1033.94 ▼1.3833.90 ▼0.25
Add New Post /wp-admin/post-new.php1,529 ▼223.23 ▲0.19582.71 ▼40.7362.45 ▲7.92
Media Library /wp-admin/upload.php1,404 ▲74.15 ▼0.0699.47 ▼3.7644.88 ▲1.43
Personalise /wp-admin/options-general.php?page=amr-personalise/amr-personalise.php9821.9922.4027.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/amr-personalise/amr-personalise-uninstall.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/amr-personalise/amr-personalise-uninstall.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/amr-personalise/amr-personalise-uninstall.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
9 plugin tags: emails, first name, personalize, personalise, sender...

amr-personalise/amr-personalise.php 92% from 13 tests

"amr personalise" version 2.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 275 characters long)

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
Good job! No executable or dangerous file extensions detected492 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP58067492

PHP code Passed 2 tests

A brief analysis 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.39
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin