84% alceris-analytics

Code Review | Alceris Analytics

WordPress plugin Alceris Analytics scored84%from 54 tests.

About plugin

  • Plugin page: alceris-analytics
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2022
  • Latest release: Jan 15, 2023
  • Number of updates: 8
  • Update frequency: every 20.5 days
  • Top authors: alceris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Alceris Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.92 ▲0.97
Dashboard /wp-admin3.31 ▲0.0157.62 ▲10.22
Posts /wp-admin/edit.php3.36 ▲0.0148.04 ▼1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.37 ▼2.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▼2.86
Alceris Analytics /wp-admin/options-general.php?page=alceris-analytics3.2331.22

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

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

Browser metrics Passed 4 tests

Alceris Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.125.26 ▲3.6444.15 ▲1.69
Dashboard /wp-admin2,210 ▲255.86 ▲0.9799.04 ▼17.8538.41 ▼10.05
Posts /wp-admin/edit.php2,096 ▲42.04 ▼0.0136.44 ▼5.4933.89 ▲1.44
Add New Post /wp-admin/post-new.php1,536 ▲723.08 ▲4.82624.17 ▼8.1657.73 ▲3.10
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.01100.46 ▼2.6644.16 ▼3.76
Alceris Analytics /wp-admin/options-general.php?page=alceris-analytics8162.0526.0126.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alceris-analytics/alceris-analytics.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

alceris-analytics/alceris-analytics.php 92% from 13 tests

"Alceris Analytics" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected71 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1211160
SVG1007
Markdown1204

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
alceris.png0.85KB0.51KB▼ 40.05%