89% nashaat-activity-log

Code Review | Nashaat Activity Log

WordPress plugin Nashaat Activity Log scored89%from 54 tests.

About plugin

  • Plugin page: nashaat-activity-log
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2021
  • Latest release: Jul 11, 2023
  • Number of updates: 19
  • Update frequency: every 39.6 days
  • Top authors: khr2003 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 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.35MB] [CPU: ▲0.96ms] Passed 4 tests

Server-side resources used by Nashaat Activity Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3241.32 ▼6.91
Dashboard /wp-admin3.65 ▲0.3449.76 ▲3.89
Posts /wp-admin/edit.php3.76 ▲0.4046.74 ▲0.67
Add New Post /wp-admin/post-new.php6.28 ▲0.3999.68 ▲6.17
Media Library /wp-admin/upload.php3.57 ▲0.3437.73 ▲6.59
Settings /wp-admin/admin.php?page=nashaat-settings3.5434.96
Nashaat /wp-admin/admin.php?page=nashaat-table3.5642.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 55 new files
Database: 1 new table, 8 new options
New tables
wp_nashaat_log
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
nashaat_db_version
can_compress_scripts
widget_recent-comments
nashaat-settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nashaat Activity Log
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲20713.47 ▼0.961.65 ▼0.1843.65 ▼0.47
Dashboard /wp-admin2,362 ▲1804.93 ▼0.01101.83 ▼7.1942.55 ▼1.99
Posts /wp-admin/edit.php2,242 ▲1502.11 ▲0.0536.32 ▼8.9030.85 ▼5.29
Add New Post /wp-admin/post-new.php1,397 ▼11721.25 ▲3.73578.22 ▼92.4344.35 ▼14.96
Media Library /wp-admin/upload.php1,544 ▲1564.30 ▲0.1095.73 ▲2.2441.34 ▼2.68
Settings /wp-admin/admin.php?page=nashaat-settings9702.1526.2729.12
Nashaat /wp-admin/admin.php?page=nashaat-table1,2832.2030.6141.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 issues were found

Optimizations

Plugin configuration 93% 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
5 plugin tags: activity, woocommerce, event, log, monitor

nashaat-activity-log/index.php 85% from 13 tests

"Nashaat Activity Log" version 1.2.3'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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("nashaat-activity-log.php" instead of "index.php")

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 plugin8,405 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,3422,1755,927
JSON2001,874
Sass3731403
JavaScript31012105
XML1222951
SVG11043
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.62
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes36
▷ Abstract classes12.78%
▷ Concrete classes3597.22%
▷ Final classes00.00%
Methods243
▷ Static methods104.12%
▷ Public methods9037.04%
▷ Protected methods9739.92%
▷ Private methods5623.05%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin