68% sepyra-analytics

Code Review | Sepyra Analytics

WordPress plugin Sepyra Analytics scored 68% from 54 tests.

About plugin

  • Plugin page: sepyra-analytics
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Sep 25, 2014
  • Latest release: Sep 25, 2014
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: Sepyra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 837 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.89MB] [CPU: ▼176.00ms] Passed 4 tests

An overview of server-side resources used by Sepyra Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1444.34 ▲11.07
Dashboard /wp-admin2.76 ▼0.3025.33 ▼18.73
Posts /wp-admin/edit.php2.76 ▼0.3528.52 ▼13.73
Add New Post /wp-admin/post-new.php2.76 ▼2.6724.98 ▼649.76
Media Library /wp-admin/upload.php2.76 ▼0.2421.18 ▼21.78
Sepyra /wp-admin/options-general.php?page=sepyra2.7623.77

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 3 new options
New WordPress options
id
sepyra_activated
code

Browser metrics Passed 4 tests

A check of browser resources used by Sepyra Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.94 ▲0.417.74 ▼2.6645.30 ▼11.75
Dashboard /wp-admin2,974 ▲405.89 ▼0.04159.15 ▲6.76118.08 ▼9.48
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0267.16 ▼4.8797.17 ▲10.31
Add New Post /wp-admin/post-new.php1,503 ▼18018.47 ▼0.28376.93 ▲4.29113.15 ▼5.86
Media Library /wp-admin/upload.php1,815 ▲85.01 ▲0.01151.32 ▼19.10123.52 ▼33.72
Sepyra /wp-admin/options-general.php?page=sepyra1,0212.0960.3665.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 3 options in the database
    • sepyra_activated
    • id
    • code

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sepyra
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sepyra-analytics/sepyra-analitics.php:32

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Sepyra Analytics settings page.) image missing
You can look at the official readme.txt

sepyra-analytics/sepyra-analitics.php 85% from 13 tests

The main PHP file in "Sepyra Analytics" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sepyra-analytics.php" instead of "sepyra-analitics.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin128 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152195
PO File1121033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.01KB12.52KB▼ 63.20%