74% slagzet-van-de-dag

Code Review | slagzet van de dag

WordPress plugin slagzet van de dag scored74%from 54 tests.

About plugin

  • Plugin page: slagzet-van-de-dag
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2013
  • Latest release: Mar 15, 2013
  • Number of updates: 5
  • Update frequency: every 4.6 days
  • Top authors: Maurits Meijer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.70MB] [CPU: ▼48.41ms] Passed 4 tests

An overview of server-side resources used by slagzet van de dag
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.179.13 ▼30.53
Dashboard /wp-admin2.30 ▼1.0010.87 ▼39.94
Posts /wp-admin/edit.php2.30 ▼1.0614.16 ▼35.22
Add New Post /wp-admin/post-new.php2.30 ▼3.5910.35 ▼87.93
Media Library /wp-admin/upload.php2.30 ▼0.9310.29 ▼22.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for slagzet van de dag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.101.97 ▲0.0640.69 ▼8.05
Dashboard /wp-admin2,206 ▲184.89 ▲0.02107.39 ▼6.5636.60 ▼6.91
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0443.83 ▲6.4137.00 ▲5.60
Add New Post /wp-admin/post-new.php1,535 ▲1823.18 ▲5.56651.51 ▼12.6562.55 ▲9.64
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0195.38 ▼1.2242.66 ▲0.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SVD::register() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slagzet-van-de-dag/slagzetvandedag.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

slagzet-van-de-dag/slagzetvandedag.php 92% from 13 tests

Analyzing the main PHP file in "slagzet van de dag" version 1.0.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("slagzet-van-de-dag.php" instead of "slagzetvandedag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin270 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2245184
CSS111050
PHP15836

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bm18.png0.48KB0.37KB▼ 23.79%
screenshot-1.png11.85KB5.27KB▼ 55.53%
df18.png0.13KB0.11KB▼ 17.52%
btnforwarddis.png1.02KB0.81KB▼ 20.29%
wk18.png0.80KB0.48KB▼ 39.61%