84% angellist

Code Review | AngelList

WordPress plugin AngelList scored84%from 54 tests.

About plugin

  • Plugin page: angellist
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: May 28, 2012
  • Latest release: May 25, 2013
  • Number of updates: 23
  • Update frequency: every 15.7 days
  • Top authors: niallkennedy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.86ms] Passed 4 tests

A check of server-side resources used by AngelList
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.32 ▼0.76
Dashboard /wp-admin3.37 ▲0.0647.98 ▼4.10
Posts /wp-admin/edit.php3.42 ▲0.0645.04 ▼2.44
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.68 ▲0.54
Media Library /wp-admin/upload.php3.29 ▲0.0636.17 ▼0.13

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

AngelList: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▼0.141.76 ▲0.0241.27 ▼0.56
Dashboard /wp-admin2,195 ▲155.65 ▼0.0894.49 ▲8.9941.92 ▼0.11
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0134.97 ▼0.8131.44 ▼6.06
Add New Post /wp-admin/post-new.php6,268 ▲4,73925.97 ▲2.79919.17 ▲254.5059.57 ▲5.41
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0997.19 ▲1.7044.39 ▲2.33

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/angellist/plugin.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === angellist === )
The official readme.txt is a good inspiration

angellist/plugin.php 92% from 13 tests

The main PHP script in "AngelList" version 1.3.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("angellist.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected1,518 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP9150405865
LESS56321349
JavaScript43741265
CSS20039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.65
Average class complexity36.00
▷ Minimum class complexity4.00
▷ Maximum class complexity94.00
Average method complexity8.18
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods2666.67%
▷ Public methods3589.74%
▷ Protected methods00.00%
▷ Private methods410.26%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin