84% openname

Code Review | Openname

WordPress plugin Openname scored84%from 54 tests.

About plugin

  • Plugin page: openname
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 4, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: larz3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.41ms] Passed 4 tests

Server-side resources used by Openname
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.98 ▼7.91
Dashboard /wp-admin3.35 ▲0.0151.89 ▼13.59
Posts /wp-admin/edit.php3.46 ▲0.1157.19 ▲4.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0599.11 ▲1.49
Media Library /wp-admin/upload.php3.27 ▲0.0538.28 ▲2.39
Openname /wp-admin/options-general.php?page=openname3.2433.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
openname_endpoint
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Openname
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.37 ▲0.021.72 ▼0.2247.69 ▲5.96
Dashboard /wp-admin2,202 ▲225.57 ▼0.0593.85 ▼2.8038.43 ▼3.24
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0640.48 ▲3.6137.64 ▲2.33
Add New Post /wp-admin/post-new.php1,539 ▲418.47 ▼6.53622.00 ▲14.4964.82 ▼3.89
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.0498.58 ▼6.0544.95 ▼1.21
Openname /wp-admin/options-general.php?page=openname8182.0327.0629.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/openname/openname.php:135
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/openname/options.php:5

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)
There were no browser issues 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
2 plugin tags: avatar, openname

openname/openname.php Passed 13 tests

The main PHP file in "Openname" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Enables Openname support for your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin193 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27943193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin