90% new-relic-log-splitter

Code Review | New Relic log splitter

WordPress plugin New Relic log splitter scored90%from 54 tests.

About plugin

  • Plugin page: new-relic-log-spl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2014
  • Latest release: Nov 23, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: giacomozinetti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.23ms] Passed 4 tests

An overview of server-side resources used by New Relic log splitter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.43 ▼0.36
Dashboard /wp-admin3.31 ▲0.0042.05 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0044.87 ▼1.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.01 ▼9.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.12 ▼2.62

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by New Relic log splitter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲0.071.77 ▲0.1843.42 ▲0.48
Dashboard /wp-admin2,206 ▲154.85 ▼1.05108.19 ▲8.1036.73 ▼3.34
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0239.86 ▲4.5336.31 ▲0.88
Add New Post /wp-admin/post-new.php1,534 ▲123.03 ▼0.07653.25 ▲41.4752.69 ▲6.62
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0494.54 ▼18.7141.16 ▼4.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: performance, split, admin, log, relic...

new-relic-log-splitter/new-relic-log-splitter.php Passed 13 tests

"New Relic log splitter" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Configures New Relic to split log data in admin, cron, and website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12815

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.83
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin