84% weiterlesen-auf-den-anfang

Code Review | Weiterlesen auf den Anfang

WordPress plugin Weiterlesen auf den Anfang scored 84% from 54 tests.

About plugin

  • Plugin page: weiterlesen-auf-d...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Dec 12, 2016
  • Number of updates: 7
  • Update frequency: every 217.2 days
  • Top authors: Perun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Weiterlesen auf den Anfang
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.93 ▼7.90
Dashboard /wp-admin3.31 ▲0.0145.32 ▼5.36
Posts /wp-admin/edit.php3.36 ▲0.0049.26 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.12 ▼16.19
Media Library /wp-admin/upload.php3.23 ▲0.0032.29 ▼2.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Weiterlesen auf den Anfang
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.47 ▼0.111.65 ▼0.4042.87 ▼2.15
Dashboard /wp-admin2,206 ▲325.85 ▲0.98113.01 ▼11.0643.40 ▼10.76
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0139.24 ▲3.2435.73 ▼1.17
Add New Post /wp-admin/post-new.php1,528 ▼518.29 ▼4.85662.16 ▼27.0253.12 ▼9.81
Media Library /wp-admin/upload.php1,382 ▼64.21 ▲0.0199.66 ▼14.7243.53 ▼5.26

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
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_filter() in wp-content/plugins/weiterlesen-auf-den-anfang/weiterlesen-anfang.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: posts, read more

weiterlesen-auf-den-anfang/weiterlesen-anfang.php 85% from 13 tests

The entry point to "Weiterlesen auf den Anfang" version 0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weiterlesen-auf-den-anfang.php" instead of "weiterlesen-anfang.php")
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10813

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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

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